diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-20 17:47:26 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-20 17:54:43 +0800 |
commit | 136e7561dbe34bafa1974ea6aa9aa5acceb00c61 (patch) | |
tree | 06a63bc7a63ec857d91d8981555cf4f297d09ed6 | |
parent | 73b78f9eb4e187b5c347225e1ba178f7b5cad7c1 (diff) | |
download | gsoc2013-empathy-136e7561dbe34bafa1974ea6aa9aa5acceb00c61.tar gsoc2013-empathy-136e7561dbe34bafa1974ea6aa9aa5acceb00c61.tar.gz gsoc2013-empathy-136e7561dbe34bafa1974ea6aa9aa5acceb00c61.tar.bz2 gsoc2013-empathy-136e7561dbe34bafa1974ea6aa9aa5acceb00c61.tar.lz gsoc2013-empathy-136e7561dbe34bafa1974ea6aa9aa5acceb00c61.tar.xz gsoc2013-empathy-136e7561dbe34bafa1974ea6aa9aa5acceb00c61.tar.zst gsoc2013-empathy-136e7561dbe34bafa1974ea6aa9aa5acceb00c61.zip |
fix show_offline gconf key (#616267)
The key is /ui/show_offline not /contacts/show_offline
-rw-r--r-- | libempathy-gtk/empathy-conf.h | 2 | ||||
-rw-r--r-- | 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 78d0bbd67..c418bb116 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 3d367df68..51d0ec9ef 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -733,7 +733,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. */ @@ -1502,10 +1502,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); |