[gnome-control-center] Give focus to the search entry when showing the overview page.



commit 7f7f33c8537bf591d7b83d9c3e9eba087ef9b89c
Author: Anders G. JÃrgensen <spirit55555 gmail com>
Date:   Thu Oct 13 13:10:42 2011 +0200

    Give focus to the search entry when showing the overview page.
    
    https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/833710

 shell/gnome-control-center.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 3f1e211..92d256b 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -211,6 +211,7 @@ shell_show_overview_page (GnomeControlCenterPrivate *priv)
   g_free (priv->filter_string);
   priv->filter_string = g_strdup ("");
   gtk_entry_set_text (GTK_ENTRY (priv->search_entry), "");
+  gtk_widget_grab_focus (priv->search_entry);
 
   gtk_lock_button_set_permission (GTK_LOCK_BUTTON (priv->lock_button), NULL);
 



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