From 5170d4c2440db6113024741f21efdd1d744518f9 Mon Sep 17 00:00:00 2001 From: Alexandru Pandelea Date: Sat, 5 Mar 2016 09:21:41 +0200 Subject: nautilus-desktop-window: disable Alt+Home for desktop view The shortcut Alt+Home should not change the items from desktop to those in /home// In order to fix this, the corresponding action was disabled. https://bugzilla.gnome.org/show_bug.cgi?id=761241 --- src/nautilus-desktop-window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c index cd52182f3..72467a621 100644 --- a/src/nautilus-desktop-window.c +++ b/src/nautilus-desktop-window.c @@ -92,6 +92,11 @@ nautilus_desktop_window_init_actions (NautilusDesktopWindow *window) action = g_action_map_lookup_action (G_ACTION_MAP (window), "new-tab"); g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); + + /* Don't allow switching to home dir on desktop */ + action = g_action_map_lookup_action (G_ACTION_MAP (window), + "go-home"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE); } static void -- cgit v1.2.1