diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 20:10:22 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 20:10:22 +0200 |
commit | c042e64ccabe8da21f2251301bc0536922d44560 (patch) | |
tree | d4aa2d6f9568fb7c77879e60c2bc8d19a2513421 /src/file-manager/fm-tree-view.c | |
parent | 245d15cb31565d31bdb380b8a689489732748ac5 (diff) | |
download | caja-c042e64ccabe8da21f2251301bc0536922d44560.tar.bz2 caja-c042e64ccabe8da21f2251301bc0536922d44560.tar.xz |
convert tree sidebar prefs to gsettings
Diffstat (limited to 'src/file-manager/fm-tree-view.c')
-rw-r--r-- | src/file-manager/fm-tree-view.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/file-manager/fm-tree-view.c b/src/file-manager/fm-tree-view.c index d56f5a6e..c7fa3d21 100644 --- a/src/file-manager/fm-tree-view.c +++ b/src/file-manager/fm-tree-view.c @@ -1542,7 +1542,7 @@ update_filtering_from_preferences (FMTreeView *view) } fm_tree_model_set_show_only_directories (view->details->child_model, - eel_preferences_get_boolean (CAJA_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES)); + g_settings_get_boolean (caja_tree_sidebar_preferences, CAJA_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES)); } static void @@ -1603,9 +1603,9 @@ fm_tree_view_init (FMTreeView *view) "changed::" CAJA_PREFERENCES_SHOW_HIDDEN_FILES, G_CALLBACK(filtering_changed_callback), view); - eel_preferences_add_callback_while_alive (CAJA_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES, - filtering_changed_callback, view, G_OBJECT (view)); - + g_signal_connect_swapped (caja_tree_sidebar_preferences, + "changed::" CAJA_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES, + G_CALLBACK (filtering_changed_callback), view); view->details->popup_file = NULL; view->details->clipboard_handler_id = @@ -1682,6 +1682,10 @@ fm_tree_view_dispose (GObject *object) G_CALLBACK(filtering_changed_callback), view); + g_signal_handlers_disconnect_by_func (caja_tree_sidebar_preferences, + G_CALLBACK(filtering_changed_callback), + view); + view->details->window = NULL; G_OBJECT_CLASS (parent_class)->dispose (object); |