diff options
author | Xan Lopez <xan@gnome.org> | 2010-05-18 22:15:04 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-05-19 00:08:47 +0800 |
commit | 50c36fdf1c4224c4b2e2a97d635fd9184af7519d (patch) | |
tree | eadebb97adf09336a6917f543efea34fc1ea4daa | |
parent | 71ec9b46c22a8c5f6fa174aed77c54006e9089ea (diff) | |
download | gsoc2013-epiphany-50c36fdf1c4224c4b2e2a97d635fd9184af7519d.tar.gz gsoc2013-epiphany-50c36fdf1c4224c4b2e2a97d635fd9184af7519d.tar.zst gsoc2013-epiphany-50c36fdf1c4224c4b2e2a97d635fd9184af7519d.zip |
Do not hardcode the statusbar context descriptions
Define them in the EphyWebView header, since we'll need to create the
context ids from multiple files.
-rw-r--r-- | embed/ephy-web-view.h | 3 | ||||
-rw-r--r-- | src/ephy-window.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h index 5243aa772..1b45ed491 100644 --- a/embed/ephy-web-view.h +++ b/embed/ephy-web-view.h @@ -45,6 +45,9 @@ typedef struct _EphyWebViewClass EphyWebViewClass; typedef struct _EphyWebView EphyWebView; typedef struct _EphyWebViewPrivate EphyWebViewPrivate; +#define TAB_MESSAGE_CONTEXT_DESCRIPTION "tab_message" +#define HELP_MESSAGE_CONTEXT_DESCRIPTION "help_message" + typedef enum { EPHY_WEB_VIEW_NAV_UP = 1 << 0, diff --git a/src/ephy-window.c b/src/ephy-window.c index d49b3f10b..a627dc554 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -495,9 +495,9 @@ impl_add_child (EphyEmbedContainer *container, view = ephy_embed_get_web_view (child); window->priv->tab_message_cid = ephy_web_view_statusbar_get_context_id - (view, "tab_message"); + (view, TAB_MESSAGE_CONTEXT_DESCRIPTION); window->priv->help_message_cid = ephy_web_view_statusbar_get_context_id - (view, "help_message"); + (view, HELP_MESSAGE_CONTEXT_DESCRIPTION); return ephy_notebook_add_tab (EPHY_NOTEBOOK (window->priv->notebook), child, position, jump_to); |