[nautilus] Don't allow Search in desktop window



commit a7832b214ddbe726c86a1b972a7fdd4f79deaf7b
Author: Marc Deslauriers <marc deslauriers ubuntu com>
Date:   Thu Jan 16 10:48:07 2014 -0500

    Don't allow Search in desktop window
    
    Using the Search shortcut (Ctrl-F) in the desktop window displays
    a search bar underneath the panel. Disable it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721711

 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 aabf942..25d48f4 100644
--- a/src/nautilus-desktop-window.c
+++ b/src/nautilus-desktop-window.c
@@ -85,6 +85,11 @@ nautilus_desktop_window_constructed (GObject *obj)
                                              NAUTILUS_ACTION_NEW_TAB);
        gtk_action_set_sensitive (action, FALSE);
 
+       /* Don't allow search on desktop */
+       action = gtk_action_group_get_action (action_group,
+                                             NAUTILUS_ACTION_SEARCH);
+       gtk_action_set_sensitive (action, FALSE);
+
        /* Set the accessible name so that it doesn't inherit the cryptic desktop URI. */
        accessible = gtk_widget_get_accessible (GTK_WIDGET (window));
 


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