[gnome-control-center/extensible-shell] shell: Hide the search entry when in a capplet



commit 88f7b2542237913012cf920dc1934ccc847ab728
Author: Thomas Wood <thomas wood intel com>
Date:   Wed Mar 10 18:35:53 2010 +0000

    shell: Hide the search entry when in a capplet
    
    The search entry only searches the list of capplets, not in individual
    settings panels, therefore do not show it when display a settings panel.

 shell/control-center.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/shell/control-center.c b/shell/control-center.c
index 4edf182..0c405b9 100644
--- a/shell/control-center.c
+++ b/shell/control-center.c
@@ -466,6 +466,11 @@ notebook_switch_page_cb (GtkNotebook     *book,
     gtk_widget_hide (W (data->builder, "home-button"));
   else
     gtk_widget_show (W (data->builder, "home-button"));
+
+  if (page_num == CAPPLET_PAGE)
+    gtk_widget_hide (W (data->builder, "search-entry"));
+  else
+    gtk_widget_show (W (data->builder, "search-entry"));
 }
 
 static void



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