diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2016-03-05 09:21:41 +0200 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2016-03-14 20:37:09 +0200 |
commit | 5170d4c2440db6113024741f21efdd1d744518f9 (patch) | |
tree | cc4a64390cb58df20c831827951fa633784549d3 | |
parent | 8263546bcbb5eee62fce893772611c48fe627766 (diff) | |
download | nautilus-wip/alexpandelea/test.tar.gz |
nautilus-desktop-window: disable Alt+Home for desktop viewwip/alexpandelea/test
The shortcut Alt+Home should not change the items from desktop to those
in /home/<user>/
In order to fix this, the corresponding action was disabled.
https://bugzilla.gnome.org/show_bug.cgi?id=761241
-rw-r--r-- | src/nautilus-desktop-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |