aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-01-10 14:41:49 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-01-10 14:41:49 +0800
commit52e27c12700176b9e0ef3752f65f5fc76a8362ab (patch)
tree8975e8e0df70c18deb3c2bd13a2de783aa7bd87f /mail/folder-browser.c
parente4d884f1b6ab70f46da87d392b381d0082fd07b9 (diff)
downloadgsoc2013-evolution-52e27c12700176b9e0ef3752f65f5fc76a8362ab.tar.gz
gsoc2013-evolution-52e27c12700176b9e0ef3752f65f5fc76a8362ab.tar.zst
gsoc2013-evolution-52e27c12700176b9e0ef3752f65f5fc76a8362ab.zip
Save the paned_size notify handle. (folder_browser_destroy): Remove gconf
2003-01-10 Not Zed <NotZed@Ximian.com> * folder-browser.c (folder_browser_gui_init): Save the paned_size notify handle. (folder_browser_destroy): Remove gconf notify handler. svn path=/trunk/; revision=19395
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index ee23c54c0b..96e202e4b2 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -194,6 +194,11 @@ folder_browser_destroy (GtkObject *object)
g_object_unref (folder_browser->view_menus);
folder_browser->view_menus = NULL;
}
+
+ if (folder_browser->paned_size_notify_id != 0) {
+ gconf_client_notify_remove(gconf_client_get_default (), folder_browser->paned_size_notify_id);
+ folder_browser->paned_size_notify_id = 0;
+ }
/* wait for all outstanding async events against us */
mail_async_event_destroy (folder_browser->async_event);
@@ -2402,8 +2407,8 @@ folder_browser_gui_init (FolderBrowser *fb)
gconf_client_add_dir (gconf, "/apps/evolution/mail/display/paned_size",
GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
- gconf_client_notify_add (gconf, "/apps/evolution/mail/display/paned_size",
- paned_size_changed, fb, NULL, NULL);
+ fb->paned_size_notify_id = gconf_client_notify_add (gconf, "/apps/evolution/mail/display/paned_size",
+ paned_size_changed, fb, NULL, NULL);
paned_size = gconf_client_get_int (gconf, "/apps/evolution/mail/display/paned_size", NULL);