summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-08-17 21:13:53 +0200
committerBastien Nocera <hadess@hadess.net>2014-08-17 21:19:52 +0200
commit693cbc5541561004504e03fe6f80e94540e16b33 (patch)
tree48728aa0389b558ebeff23f97cba5fe31270c330
parenta7d2d2af665faab5a9c6c4398ec23f993fd757e7 (diff)
downloadtotem-693cbc5541561004504e03fe6f80e94540e16b33.tar.gz
main: Fix headerbar title when playing search results
We would be trying to set the custom title when there wasn't one yet.
-rw-r--r--src/totem-main-toolbar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/totem-main-toolbar.c b/src/totem-main-toolbar.c
index f86bd73cd..cad181e3d 100644
--- a/src/totem-main-toolbar.c
+++ b/src/totem-main-toolbar.c
@@ -147,7 +147,10 @@ update_toolbar_state (TotemMainToolbar *bar)
{
if (!priv->search_string || *priv->search_string == '\0')
{
- gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), CUSTOM_TITLE_PAGE);
+ if (priv->custom_title)
+ gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), CUSTOM_TITLE_PAGE);
+ else
+ gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), DEFAULT_PAGE);
}
else
{