[gnome-games/wip/exalm/spinner: 1/10] application-window: Wrap titlebar into a HdyTitleBar



commit a7076fc43c381a2348e4224902998522832e7db0
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Sep 24 17:47:32 2018 +0500

    application-window: Wrap titlebar into a HdyTitleBar
    
    This will be used in the subsequent commits to avoid glitches with
    headerbar corners in collection view.

 data/ui/application-window.ui | 37 +++++++++++++++++++++----------------
 1 file changed, 21 insertions(+), 16 deletions(-)
---
diff --git a/data/ui/application-window.ui b/data/ui/application-window.ui
index 9efae3e7..bf0f68de 100644
--- a/data/ui/application-window.ui
+++ b/data/ui/application-window.ui
@@ -35,26 +35,31 @@
       </object>
     </child>
     <child type="titlebar">
-      <object class="GtkStack" id="header_bar">
+      <object class="HdyTitleBar">
         <property name="visible">True</property>
         <child>
-          <object class="GamesCollectionHeaderBar" id="collection_header_bar">
+          <object class="GtkStack" id="header_bar">
             <property name="visible">True</property>
-            <property name="show_close_button">True</property>
+            <child>
+              <object class="GamesCollectionHeaderBar" id="collection_header_bar">
+                <property name="visible">True</property>
+                <property name="show_close_button">True</property>
+              </object>
+              <packing>
+                <property name="name">collection</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GamesDisplayHeaderBar" id="display_header_bar">
+                <property name="visible">True</property>
+                <property name="show_close_button">True</property>
+                <signal name="back" handler="on_display_back"/>
+              </object>
+              <packing>
+                <property name="name">display</property>
+              </packing>
+            </child>
           </object>
-          <packing>
-            <property name="name">collection</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GamesDisplayHeaderBar" id="display_header_bar">
-            <property name="visible">True</property>
-            <property name="show_close_button">True</property>
-            <signal name="back" handler="on_display_back"/>
-          </object>
-          <packing>
-            <property name="name">display</property>
-          </packing>
         </child>
       </object>
     </child>


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