diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 12:36:04 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 12:36:04 +0200 |
commit | 6f15dc7cc1be8b98bbc1f5edd963ff89076295ee (patch) | |
tree | 04a0b2971e10ce57880360f63147b2d137b84b2a /src/caja-pathbar.c | |
parent | 373da58a33a4242f3d91771fd304ba8bb3d55e61 (diff) | |
download | caja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.bz2 caja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.xz |
start migration to gsettings
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); } |