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.
This commit is contained in:
Thomas Wood 2011-02-12 19:37:27 +00:00
parent fe7b2212cc
commit 7172bc2b06

View file

@ -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"));
{
gtk_widget_hide (W (priv->builder, "home-button"));
gtk_widget_show (W (priv->builder, "search-entry"));
}
else
gtk_widget_show (W (priv->builder, "home-button"));
if (page_num == CAPPLET_PAGE)
gtk_widget_hide (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 */