summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-directory-view.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 14:44:07 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 14:44:07 +0200
commitb10e30db918ff889bb06540e129b3f31b2815da2 (patch)
treed98d7640c4275e4d6496f54926b580e59b9253b7 /src/file-manager/fm-directory-view.c
parentf82a305cde0842e53d7468ce37b4cd02161838c5 (diff)
downloadcaja-b10e30db918ff889bb06540e129b3f31b2815da2.tar.bz2
caja-b10e30db918ff889bb06540e129b3f31b2815da2.tar.xz
convert click-policy to gsettings
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r--src/file-manager/fm-directory-view.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 5b304f13..db03d79d 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -2045,8 +2045,10 @@ fm_directory_view_init (FMDirectoryView *view)
text_attribute_names_changed_callback, view);
eel_preferences_add_callback (CAJA_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS,
image_display_policy_changed_callback, view);
- eel_preferences_add_callback (CAJA_PREFERENCES_CLICK_POLICY,
- click_policy_changed_callback, view);
+ g_signal_connect_swapped (caja_preferences,
+ "changed::" CAJA_PREFERENCES_CLICK_POLICY,
+ G_CALLBACK(click_policy_changed_callback),
+ view);
eel_preferences_add_callback (CAJA_PREFERENCES_SORT_DIRECTORIES_FIRST,
sort_directories_first_changed_callback, view);
eel_preferences_add_callback (CAJA_PREFERENCES_LOCKDOWN_COMMAND_LINE,
@@ -2174,8 +2176,8 @@ fm_directory_view_finalize (GObject *object)
text_attribute_names_changed_callback, view);
eel_preferences_remove_callback (CAJA_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS,
image_display_policy_changed_callback, view);
- eel_preferences_remove_callback (CAJA_PREFERENCES_CLICK_POLICY,
- click_policy_changed_callback, view);
+ g_signal_handlers_disconnect_by_func (caja_preferences,
+ click_policy_changed_callback, view);
eel_preferences_remove_callback (CAJA_PREFERENCES_SORT_DIRECTORIES_FIRST,
sort_directories_first_changed_callback, view);
eel_preferences_remove_callback (CAJA_PREFERENCES_LOCKDOWN_COMMAND_LINE,