[libadwaita/wip/exalm/borders-fixes: 3/3] demo: Simplify the split header bar layout




commit 217fd71870d3977564414d2a445ce964642d09bd
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Jul 26 22:47:20 2021 +0500

    demo: Simplify the split header bar layout
    
    Drop 2 separators and the size group. Now that we can color the part of
    that separator there's virtually no reason to do that.

 examples/adw-demo-window.ui | 39 ++++++---------------------------------
 1 file changed, 6 insertions(+), 33 deletions(-)
---
diff --git a/examples/adw-demo-window.ui b/examples/adw-demo-window.ui
index db5bd50d..d26e29cc 100644
--- a/examples/adw-demo-window.ui
+++ b/examples/adw-demo-window.ui
@@ -28,7 +28,7 @@
               <object class="GtkBox">
                 <property name="orientation">vertical</property>
                 <child>
-                  <object class="AdwHeaderBar" id="left_header_bar">
+                  <object class="AdwHeaderBar">
                     <property name="show-end-title-buttons" bind-source="content_box" bind-property="folded" 
bind-flags="sync-create"/>
                     <child type="start">
                       <object class="GtkButton" id="theme_variant">
@@ -56,29 +56,10 @@
               <object class="AdwLeafletPage">
                 <property name="navigatable">False</property>
                 <property name="child">
-                  <object class="GtkBox">
-                    <property name="orientation">vertical</property>
-                    <child>
-                      <object class="GtkWindowHandle" id="header_separator">
-                        <child>
-                          <object class="GtkSeparator">
-                            <property name="orientation">vertical</property>
-                            <style>
-                              <class name="sidebar"/>
-                            </style>
-                          </object>
-                        </child>
-                      </object>
-                    </child>
-                    <child>
-                      <object class="GtkSeparator">
-                        <property name="orientation">vertical</property>
-                        <property name="vexpand">True</property>
-                        <style>
-                          <class name="sidebar"/>
-                        </style>
-                      </object>
-                    </child>
+                  <object class="GtkSeparator">
+                    <style>
+                      <class name="sidebar"/>
+                    </style>
                   </object>
                 </property>
               </object>
@@ -88,7 +69,7 @@
                 <property name="orientation">vertical</property>
                 <property name="hexpand">True</property>
                 <child>
-                  <object class="AdwHeaderBar" id="right_header_bar">
+                  <object class="AdwHeaderBar">
                     <property name="show-start-title-buttons" bind-source="content_box" 
bind-property="folded" bind-flags="sync-create"/>
                     <property name="title-widget">
                       <object class="GtkBox"/>
@@ -934,14 +915,6 @@
       </object>
     </child>
   </template>
-  <object class="GtkSizeGroup">
-    <property name="mode">vertical</property>
-    <widgets>
-      <widget name="left_header_bar"/>
-      <widget name="header_separator"/>
-      <widget name="right_header_bar"/>
-    </widgets>
-  </object>
   <object class="GtkAdjustment" id="clamp_maximum_size_adjustment">
     <property name="lower">0</property>
     <property name="upper">10000</property>


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