summaryrefslogtreecommitdiff
path: root/src/nautilus-view.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-02-28 21:10:29 +0100
committerCarlos Soriano <csoriano@gnome.org>2015-02-28 21:20:24 +0100
commit655e415e3a5ead27d98b03db14155d61943715ef (patch)
treea55d621bb0f8e9944d658a0f7bef212cf6835c9d /src/nautilus-view.c
parent480f19dccdc26a2b0815a083457541083e2e1444 (diff)
downloadnautilus-655e415e3a5ead27d98b03db14155d61943715ef.tar.gz
nautilus-view: always allow to permanently delete
Before 3.15 we had a setting for adding a menu item for permanent deletion of files. But the shortcut was always enabled no matter the state of the setting, which seems inconsistent. Then with the GAction port we changed that behavior to be consistent, but people that were unaware of the setting were complaining that the shortcut for permanent deletion was not working. Given that we show a dialog if we hit that shortcut, and the setting itself is confusing, just enable always the shortcut but remove the setting and the menu item for it. https://bugzilla.gnome.org/show_bug.cgi?id=745321
Diffstat (limited to 'src/nautilus-view.c')
-rw-r--r--src/nautilus-view.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 70c99d86b..1faba7446 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -6014,11 +6014,8 @@ real_update_actions_state (NautilusView *view)
action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group),
"delete-permanently");
- /* Only show it in trash folder or if the setting to include a delete
- * menu item is enabled */
- show_separate_delete_command = g_settings_get_boolean (nautilus_preferences, NAUTILUS_PREFERENCES_ENABLE_DELETE);
g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
- can_delete_files && show_separate_delete_command);
+ can_delete_files);
action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group),
"cut");
@@ -7530,9 +7527,6 @@ nautilus_view_init (NautilusView *view)
gtk_widget_show (GTK_WIDGET (view));
g_signal_connect_swapped (nautilus_preferences,
- "changed::" NAUTILUS_PREFERENCES_ENABLE_DELETE,
- G_CALLBACK (schedule_update_context_menus), view);
- g_signal_connect_swapped (nautilus_preferences,
"changed::" NAUTILUS_PREFERENCES_CLICK_POLICY,
G_CALLBACK (click_policy_changed_callback),
view);