diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 20:50:26 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 20:50:26 +0200 |
commit | bb2f625689b6ffc91ab93eecb4da96a10ecdabdc (patch) | |
tree | 6ce9428937e2712c66200ef1ed8e72385bbb1a69 /src/file-manager | |
parent | e4a0de637eb7c3ae3bbbcbe323c3f858161487e9 (diff) | |
download | caja-bb2f625689b6ffc91ab93eecb4da96a10ecdabdc.tar.bz2 caja-bb2f625689b6ffc91ab93eecb4da96a10ecdabdc.tar.xz |
fix conversion of enable-delete
Diffstat (limited to 'src/file-manager')
-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 19245973..25d46819 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -2039,8 +2039,9 @@ fm_directory_view_init (FMDirectoryView *view) gtk_widget_show (GTK_WIDGET (view)); - eel_preferences_add_callback (CAJA_PREFERENCES_ENABLE_DELETE, - schedule_update_menus_callback, view); + g_signal_connect_swapped (caja_preferences, + "changed::" CAJA_PREFERENCES_ENABLE_DELETE, + G_CALLBACK (schedule_update_menus_callback), view); g_signal_connect_swapped (caja_icon_view_preferences, "changed::" CAJA_PREFERENCES_ICON_VIEW_CAPTIONS, G_CALLBACK(text_attribute_names_changed_callback), @@ -2176,8 +2177,8 @@ fm_directory_view_finalize (GObject *object) view = FM_DIRECTORY_VIEW (object); - eel_preferences_remove_callback (CAJA_PREFERENCES_ENABLE_DELETE, - schedule_update_menus_callback, view); + g_signal_handlers_disconnect_by_func (caja_preferences, + schedule_update_menus_callback, view); g_signal_handlers_disconnect_by_func (caja_icon_view_preferences, text_attribute_names_changed_callback, view); g_signal_handlers_disconnect_by_func (caja_preferences, |