[nautilus/wip/alexpandelea/test] nautilus-desktop-window: disable Alt+Home for desktop view



commit 5170d4c2440db6113024741f21efdd1d744518f9
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 cd52182..72467a6 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]