[nautilus] places-sidebar: disconnect the gsettings handler callback in _dispose()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] places-sidebar: disconnect the gsettings handler callback in _dispose()
- Date: Mon, 4 Apr 2011 13:29:11 +0000 (UTC)
commit 68b57af6e476253b36d8652a681bade6facbd259
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Apr 3 19:57:37 2011 -0400
places-sidebar: disconnect the gsettings handler callback in _dispose()
The GSettings object is a global singleton, so it will always survive the
sidebar; we should make sure to disconnect all the settings signal when
destroying the sidebar.
https://bugzilla.gnome.org/show_bug.cgi?id=646664
src/nautilus-places-sidebar.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 91c20c5..1a789ac 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -3253,6 +3253,10 @@ nautilus_places_sidebar_dispose (GObject *object)
desktop_setting_changed_callback,
sidebar);
+ g_signal_handlers_disconnect_by_func (nautilus_preferences,
+ bookmarks_popup_menu_detach_cb,
+ sidebar);
+
g_signal_handlers_disconnect_by_func (gnome_background_preferences,
desktop_setting_changed_callback,
sidebar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]