summaryrefslogtreecommitdiff
path: root/src/caja-places-sidebar.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 12:36:04 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 12:36:04 +0200
commit6f15dc7cc1be8b98bbc1f5edd963ff89076295ee (patch)
tree04a0b2971e10ce57880360f63147b2d137b84b2a /src/caja-places-sidebar.c
parent373da58a33a4242f3d91771fd304ba8bb3d55e61 (diff)
downloadcaja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.bz2
caja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.xz
start migration to gsettings
Diffstat (limited to 'src/caja-places-sidebar.c')
-rw-r--r--src/caja-places-sidebar.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index dff9618a..ae63fa25 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -2854,10 +2854,9 @@ caja_places_sidebar_init (CajaPlacesSidebar *sidebar)
eel_gtk_tree_view_set_activate_on_single_click (sidebar->tree_view,
TRUE);
- eel_preferences_add_callback_while_alive (CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
- desktop_location_changed_callback,
- sidebar,
- G_OBJECT (sidebar));
+ g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
+ G_CALLBACK(desktop_location_changed_callback),
+ sidebar);
g_signal_connect_object (caja_trash_monitor_get (),
"trash_state_changed",
@@ -2900,6 +2899,10 @@ caja_places_sidebar_dispose (GObject *object)
eel_remove_weak_pointer (&(sidebar->go_to_after_mount_slot));
+ g_signal_handlers_disconnect_by_func (caja_preferences,
+ desktop_location_changed_callback,
+ sidebar);
+
G_OBJECT_CLASS (caja_places_sidebar_parent_class)->dispose (object);
}