[nautilus/gnome-3-20] nautilus-desktop-window: disable Alt+Home for desktop view



commit d93fda7ee8fac90d87c98c90f5b6fd959f9983c3
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date:   Sat Mar 5 09:21:41 2016 +0200

    nautilus-desktop-window: disable Alt+Home for desktop view
    
    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

 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 910d150..e7f09f3 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]