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:
parent
fe7b2212cc
commit
7172bc2b06
1 changed files with 8 additions and 7 deletions
|
@ -681,14 +681,15 @@ notebook_switch_page_cb (GtkNotebook *book,
|
||||||
/* make sure the home button is shown on all pages except the overview page */
|
/* make sure the home button is shown on all pages except the overview page */
|
||||||
|
|
||||||
if (page_num == 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
|
else
|
||||||
gtk_widget_show (W (priv->builder, "home-button"));
|
{
|
||||||
|
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, "search-entry"));
|
}
|
||||||
else
|
|
||||||
gtk_widget_show (W (priv->builder, "search-entry"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CcShell implementation */
|
/* CcShell implementation */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue