[totem] main: Fix headerbar title when playing search results



commit cc18e054313a19626a31fb5834c589542f7abd69
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Aug 17 21:13:53 2014 +0200

    main: Fix headerbar title when playing search results
    
    We would be trying to set the custom title when there wasn't one yet.

 src/totem-main-toolbar.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-main-toolbar.c b/src/totem-main-toolbar.c
index b833e48..b0a0f4f 100644
--- a/src/totem-main-toolbar.c
+++ b/src/totem-main-toolbar.c
@@ -146,7 +146,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
         {


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