[epiphany] ephy-web-view: make defines friendlier with introspection
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-web-view: make defines friendlier with introspection
- Date: Wed, 8 Dec 2010 22:44:44 +0000 (UTC)
commit 9176664b703913181c002bbbdde575675bfd8559
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Wed Dec 8 16:32:25 2010 +0100
ephy-web-view: make defines friendlier with introspection
Non prefixed names trigger lots of warnings, avoid them.
Bug #636790
embed/ephy-web-view.c | 2 +-
embed/ephy-web-view.h | 4 ++--
src/ephy-window.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 9a46a22..4335f59 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2159,7 +2159,7 @@ ephy_web_view_init (EphyWebView *web_view)
priv->monitor_directory = FALSE;
priv->seq_context_id = 1;
priv->seq_message_id = 1;
- priv->tab_message_id = ephy_web_view_statusbar_get_context_id (web_view, TAB_MESSAGE_CONTEXT_DESCRIPTION);
+ priv->tab_message_id = ephy_web_view_statusbar_get_context_id (web_view, EPHY_WEB_VIEW_STATUSBAR_TAB_MESSAGE_CONTEXT_DESCRIPTION);
priv->non_search_regex = g_regex_new ("(^localhost(\\.[^[:space:]]+)?(:\\d+)?(/.*)?$|"
"^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]$|"
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index e37d0e2..f4e18a5 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -45,8 +45,8 @@ 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"
+#define EPHY_WEB_VIEW_STATUSBAR_TAB_MESSAGE_CONTEXT_DESCRIPTION "tab_message"
+#define EPHY_WEB_VIEW_STATUSBAR_HELP_MESSAGE_CONTEXT_DESCRIPTION "help_message"
typedef enum
{
diff --git a/src/ephy-window.c b/src/ephy-window.c
index c643733..806eda0 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -491,9 +491,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_CONTEXT_DESCRIPTION);
+ (view, EPHY_WEB_VIEW_STATUSBAR_TAB_MESSAGE_CONTEXT_DESCRIPTION);
window->priv->help_message_cid = ephy_web_view_statusbar_get_context_id
- (view, HELP_MESSAGE_CONTEXT_DESCRIPTION);
+ (view, EPHY_WEB_VIEW_STATUSBAR_HELP_MESSAGE_CONTEXT_DESCRIPTION);
return ephy_notebook_add_tab (EPHY_NOTEBOOK (window->priv->notebook),
child, position, jump_to);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]