diff options
Diffstat (limited to 'src/caja-window-menus.c')
-rw-r--r-- | src/caja-window-menus.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/caja-window-menus.c b/src/caja-window-menus.c index da442f59..4f1f0677 100644 --- a/src/caja-window-menus.c +++ b/src/caja-window-menus.c @@ -986,6 +986,20 @@ caja_window_initialize_menus (CajaWindow *window) caja_window_initialize_trash_icon_monitor (window); } +void +caja_window_finalize_menus (CajaWindow *window) +{ + CajaTrashMonitor *monitor; + + monitor = caja_trash_monitor_get (); + + g_signal_handlers_disconnect_by_func (monitor, + trash_state_changed_cb, window); + + g_signal_handlers_disconnect_by_func (caja_preferences, + show_hidden_files_preference_callback, window); +} + static GList * get_extension_menus (CajaWindow *window) { @@ -1123,14 +1137,3 @@ caja_window_load_extension_menus (CajaWindow *window) } } -void -caja_window_remove_trash_monitor_callback (CajaWindow *window) -{ - CajaTrashMonitor *monitor; - - monitor = caja_trash_monitor_get (); - - g_signal_handlers_disconnect_by_func (monitor, - trash_state_changed_cb, window); -} - |