[gnome-boxes/set-collection-toolbar-title] topbar, collection-toolbar: Set CollectionToolbar title string



commit 5600433b9fbd787000373e3cc84f39e228816105
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Jun 24 12:06:49 2020 +0200

    topbar, collection-toolbar: Set CollectionToolbar title string
    
    This is a regression introduced by commit 53d9e06.
    
    When the user returns from the Display view to the collection view,
    the HeaderBar title was set to an empty string. The behavior we
    want, after removing the StackSwitcher, is to simply show the app
    name.

 data/ui/collection-toolbar.ui | 1 +
 src/topbar.vala               | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/ui/collection-toolbar.ui b/data/ui/collection-toolbar.ui
index 7536412e..86c42e21 100644
--- a/data/ui/collection-toolbar.ui
+++ b/data/ui/collection-toolbar.ui
@@ -4,6 +4,7 @@
   <template class="BoxesCollectionToolbar" parent="GtkHeaderBar">
     <property name="visible">True</property>
     <property name="show-close-button">True</property>
+    <property name="title" translatable="yes">Boxes</property>
     <style>
       <class name="titlebar"/>
     </style>
diff --git a/src/topbar.vala b/src/topbar.vala
index 41b283b8..d0131877 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -54,7 +54,6 @@ public void pop_main_menu () {
         get { return _status; }
         set {
             _status = value;
-            collection_toolbar.set_title (_status);
             display_toolbar.set_title (_status);
         }
     }


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