[gnome-control-center] shell: Fix searching for anything hiding widgets



commit 367daae2e4ad026b4255485257e8b116c55f5207
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 14 15:57:13 2011 +0000

    shell: Fix searching for anything hiding widgets
    
    When searching, don't hide the search entry...

 shell/gnome-control-center.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index cbff385..4d3ad8f 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -680,7 +680,7 @@ notebook_switch_page_cb (GtkNotebook               *book,
 {
   /* make sure the home button is shown on all pages except the overview page */
 
-  if (page_num == OVERVIEW_PAGE)
+  if (page_num == OVERVIEW_PAGE || page_num == SEARCH_PAGE)
     {
       gtk_widget_hide (W (priv->builder, "home-button"));
       gtk_widget_show (W (priv->builder, "search-entry"));



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