diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-22 18:28:07 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-23 12:22:55 +0200 |
commit | 75ade49a17470a86354eb8b591212d512c2ab08b (patch) | |
tree | a6e259b6bc57fc5aba17e590a1dda7b969bc59b1 /src/file-manager/fm-directory-view.c | |
parent | bcf929af833a83aba7ab58b7ae85697a288d006d (diff) | |
download | nautilus-75ade49a17470a86354eb8b591212d512c2ab08b.tar.gz |
Convert preview settings to gsettings
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r-- | src/file-manager/fm-directory-view.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 633d3464d..469aa24b8 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -1989,8 +1989,9 @@ fm_directory_view_init (FMDirectoryView *view) schedule_update_menus_callback, view); eel_preferences_add_callback (NAUTILUS_PREFERENCES_ICON_VIEW_CAPTIONS, text_attribute_names_changed_callback, view); - eel_preferences_add_callback (NAUTILUS_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS, - image_display_policy_changed_callback, view); + g_signal_connect_swapped (nautilus_preferences, + "changed::" NAUTILUS_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS, + G_CALLBACK (image_display_policy_changed_callback), view); g_signal_connect_swapped (nautilus_preferences, "changed::" NAUTILUS_PREFERENCES_CLICK_POLICY, G_CALLBACK(click_policy_changed_callback), @@ -2108,8 +2109,8 @@ fm_directory_view_finalize (GObject *object) schedule_update_menus_callback, view); eel_preferences_remove_callback (NAUTILUS_PREFERENCES_ICON_VIEW_CAPTIONS, text_attribute_names_changed_callback, view); - eel_preferences_remove_callback (NAUTILUS_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS, - image_display_policy_changed_callback, view); + g_signal_handlers_disconnect_by_func (nautilus_preferences, + image_display_policy_changed_callback, view); g_signal_handlers_disconnect_by_func (nautilus_preferences, click_policy_changed_callback, view); g_signal_handlers_disconnect_by_func (nautilus_preferences, |