[epiphany] ephy-embed-prefs.h: remove duplicated define



commit 76d8dc8d01dd1458cb4a2ccd0f22662427e7a21e
Author: Xan Lopez <xan gnome org>
Date:   Fri Jul 24 18:48:23 2009 +0300

    ephy-embed-prefs.h: remove duplicated define

 embed/ephy-embed-prefs.h |    1 -
 src/ephy-window.c        |    4 ++--
 src/window-commands.c    |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/embed/ephy-embed-prefs.h b/embed/ephy-embed-prefs.h
index 680ea8c..7fd0795 100644
--- a/embed/ephy-embed-prefs.h
+++ b/embed/ephy-embed-prefs.h
@@ -36,7 +36,6 @@
 #define CONF_SECURITY_COOKIES_ACCEPT "/apps/epiphany/web/cookie_accept"
 #define CONF_LANGUAGE_AUTODETECT_ENCODING "/apps/epiphany/web/autodetect_encoding"
 #define CONF_LANGUAGE_DEFAULT_ENCODING "/apps/epiphany/web/default_encoding"
-#define CONF_BROWSE_WITH_CARET "/apps/epiphany/web/browse_with_caret"
 #define CONF_IMAGE_ANIMATION_MODE "/apps/epiphany/web/image_animation"
 #define CONF_IMAGE_LOADING_MODE "/apps/epiphany/web/image_loading"
 #define CONF_DISPLAY_SMOOTHSCROLL "/apps/epiphany/web/smooth_scroll"
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 64275a4..7cef327 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3520,7 +3520,7 @@ browse_with_caret_notifier (GConfClient *client,
 	GtkAction *action;
 	gboolean enabled;
 
-	enabled = eel_gconf_get_boolean (CONF_BROWSE_WITH_CARET);
+	enabled = eel_gconf_get_boolean (CONF_CARET_BROWSING_ENABLED);
 	action = gtk_action_group_get_action (window->priv->action_group,
 					      "BrowseWithCaret");
 	gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), enabled);
@@ -3789,7 +3789,7 @@ ephy_window_constructor (GType type,
 	/* other notifiers */
 	browse_with_caret_notifier (NULL, 0, NULL, window);
 	priv->browse_with_caret_notifier_id = eel_gconf_notification_add
-		(CONF_BROWSE_WITH_CARET,
+		(CONF_CARET_BROWSING_ENABLED,
 		 (GConfClientNotifyFunc)browse_with_caret_notifier, window);
 
 	priv->allow_popups_notifier_id = eel_gconf_notification_add
diff --git a/src/window-commands.c b/src/window-commands.c
index eb39dc6..6494ea2 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -1028,5 +1028,5 @@ window_cmd_browse_with_caret (GtkAction *action,
 	gboolean active;
 
 	active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
-	eel_gconf_set_boolean (CONF_BROWSE_WITH_CARET, active);
+	eel_gconf_set_boolean (CONF_CARET_BROWSING_ENABLED, active);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]