diff options
Diffstat (limited to 'src/caja-places-sidebar.c')
-rw-r--r-- | src/caja-places-sidebar.c | 11 |
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); } |