diff options
Diffstat (limited to 'src/caja-pathbar.c')
-rw-r--r-- | src/caja-pathbar.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c index 1e43bd35..e3e2a1a8 100644 --- a/src/caja-pathbar.c +++ b/src/caja-pathbar.c @@ -317,10 +317,9 @@ caja_path_bar_init (CajaPathBar *path_bar) path_bar->root_path = g_file_new_for_path ("/"); desktop_is_home = g_file_equal (path_bar->home_path, path_bar->desktop_path); - eel_preferences_add_callback_while_alive (CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR, - desktop_location_changed_callback, - path_bar, - G_OBJECT (path_bar)); + g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR, + G_CALLBACK(desktop_location_changed_callback), + path_bar); g_signal_connect_swapped (path_bar->up_slider_button, "clicked", G_CALLBACK (caja_path_bar_scroll_up), path_bar); g_signal_connect_swapped (path_bar->down_slider_button, "clicked", G_CALLBACK (caja_path_bar_scroll_down), path_bar); @@ -444,6 +443,9 @@ caja_path_bar_finalize (GObject *object) g_signal_handlers_disconnect_by_func (caja_trash_monitor_get (), trash_state_changed_cb, path_bar); + g_signal_handlers_disconnect_by_func (caja_preferences, + desktop_location_changed_callback, + path_bar); G_OBJECT_CLASS (caja_path_bar_parent_class)->finalize (object); } |