[totem/gnome-3-12] main: Fix headerbar title when playing search results



commit 693cbc5541561004504e03fe6f80e94540e16b33
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 f86bd73..cad181e 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
         {


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