[gnome-control-center] shell: make sure the search entry doesn't appear when in a panel
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: make sure the search entry doesn't appear when in a panel
- Date: Sat, 12 Feb 2011 20:40:00 +0000 (UTC)
commit 7172bc2b06cf836a467e4961df56f9a2bad83402
Author: Thomas Wood <thos gnome org>
Date: Sat Feb 12 19:37:27 2011 +0000
shell: make sure the search entry doesn't appear when in a panel
Prevent the search entry appearing when opening a panel from another panel.
shell/gnome-control-center.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 4da5b7c..cbff385 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -681,14 +681,15 @@ 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)
- gtk_widget_hide (W (priv->builder, "home-button"));
- else
- gtk_widget_show (W (priv->builder, "home-button"));
-
- if (page_num == CAPPLET_PAGE)
- gtk_widget_hide (W (priv->builder, "search-entry"));
+ {
+ gtk_widget_hide (W (priv->builder, "home-button"));
+ gtk_widget_show (W (priv->builder, "search-entry"));
+ }
else
- gtk_widget_show (W (priv->builder, "search-entry"));
+ {
+ gtk_widget_show (W (priv->builder, "home-button"));
+ gtk_widget_hide (W (priv->builder, "search-entry"));
+ }
}
/* CcShell implementation */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]