diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 15:00:29 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 15:00:29 +0200 |
commit | ab3a27b67b830897c49ecf395ee5e63e4dfdfc26 (patch) | |
tree | f07a381b7a80426ef607410c8a2bfdf4126348dc /src/caja-navigation-window.c | |
parent | b10e30db918ff889bb06540e129b3f31b2815da2 (diff) | |
download | caja-ab3a27b67b830897c49ecf395ee5e63e4dfdfc26.tar.bz2 caja-ab3a27b67b830897c49ecf395ee5e63e4dfdfc26.tar.xz |
convert always-use-browser to gsettings
Diffstat (limited to 'src/caja-navigation-window.c')
-rw-r--r-- | src/caja-navigation-window.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/caja-navigation-window.c b/src/caja-navigation-window.c index 827ba154..fa64c1bc 100644 --- a/src/caja-navigation-window.c +++ b/src/caja-navigation-window.c @@ -199,9 +199,10 @@ caja_navigation_window_init (CajaNavigationWindow *window) always_use_location_entry_changed, window, G_OBJECT (window)); - eel_preferences_add_callback_while_alive (CAJA_PREFERENCES_ALWAYS_USE_BROWSER, - always_use_browser_changed, - window, G_OBJECT (window)); + g_signal_connect_swapped (caja_preferences, + "changed::" CAJA_PREFERENCES_ALWAYS_USE_BROWSER, + G_CALLBACK(always_use_browser_changed), + window); } static void @@ -626,6 +627,10 @@ caja_navigation_window_finalize (GObject *object) caja_navigation_window_remove_go_menu_callback (window); + g_signal_handlers_disconnect_by_func (caja_preferences, + always_use_browser_changed, + window); + G_OBJECT_CLASS (parent_class)->finalize (object); } @@ -757,7 +762,7 @@ real_sync_title (CajaWindow *window, /* if spatial mode is default, we keep "File Browser" in the window title * to recognize browser windows. Otherwise, we default to the directory name. */ - if (!eel_preferences_get_boolean (CAJA_PREFERENCES_ALWAYS_USE_BROWSER)) + if (!g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_ALWAYS_USE_BROWSER)) { full_title = g_strdup_printf (_("%s - File Browser"), slot->title); window_title = eel_str_middle_truncate (full_title, MAX_TITLE_LENGTH); |