[empathy/gnome-2-30] fix show_offline gconf key (#616267)



commit c540250dd9a84efcc84330ed82e7e1e87255bbeb
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Apr 20 11:47:26 2010 +0200

    fix show_offline gconf key (#616267)
    
    The key is /ui/show_offline not /contacts/show_offline

 libempathy-gtk/empathy-conf.h |    2 +-
 src/empathy-main-window.c     |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-conf.h b/libempathy-gtk/empathy-conf.h
index 21e3b38..c7993bb 100644
--- a/libempathy-gtk/empathy-conf.h
+++ b/libempathy-gtk/empathy-conf.h
@@ -76,7 +76,7 @@ struct _EmpathyConfClass {
 #define EMPATHY_PREFS_UI_SHOW_PROTOCOLS            EMPATHY_PREFS_PATH "/ui/show_protocols"
 #define EMPATHY_PREFS_UI_COMPACT_CONTACT_LIST      EMPATHY_PREFS_PATH "/ui/compact_contact_list"
 #define EMPATHY_PREFS_UI_CHAT_WINDOW_PANED_POS     EMPATHY_PREFS_PATH "/ui/chat_window_paned_pos"
-#define EMPATHY_PREFS_CONTACTS_SHOW_OFFLINE        EMPATHY_PREFS_PATH "/contacts/show_offline"
+#define EMPATHY_PREFS_UI_SHOW_OFFLINE              EMPATHY_PREFS_PATH "/ui/show_offline"
 #define EMPATHY_PREFS_CONTACTS_SORT_CRITERIUM      EMPATHY_PREFS_PATH "/contacts/sort_criterium"
 #define EMPATHY_PREFS_HINTS_CLOSE_MAIN_WINDOW      EMPATHY_PREFS_PATH "/hints/close_main_window"
 #define EMPATHY_PREFS_USE_CONN                     EMPATHY_PREFS_PATH "/use_conn"
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 635627e..c4986bc 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -712,7 +712,7 @@ main_window_view_show_offline_cb (GtkToggleAction   *action,
 
 	current = gtk_toggle_action_get_active (action);
 	empathy_conf_set_bool (empathy_conf_get (),
-			      EMPATHY_PREFS_CONTACTS_SHOW_OFFLINE,
+			      EMPATHY_PREFS_UI_SHOW_OFFLINE,
 			      current);
 
 	/* Turn off sound just while we alter the contact list. */
@@ -1484,10 +1484,10 @@ empathy_main_window_show (void)
 
 	/* Show offline ? */
 	empathy_conf_get_bool (conf,
-			      EMPATHY_PREFS_CONTACTS_SHOW_OFFLINE,
+			      EMPATHY_PREFS_UI_SHOW_OFFLINE,
 			      &show_offline);
 	empathy_conf_notify_add (conf,
-				EMPATHY_PREFS_CONTACTS_SHOW_OFFLINE,
+				EMPATHY_PREFS_UI_SHOW_OFFLINE,
 				main_window_notify_show_offline_cb,
 				show_offline_widget);
 



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