[gnome-characters/bilelmoussaoui/gtk4: 48/71] window: display window controls when folded




commit 1c949aff93bd5137cd565afaa6aa0eae26c60d34
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Wed Nov 24 10:18:35 2021 +0100

    window: display window controls when folded

 data/window.ui | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/data/window.ui b/data/window.ui
index 6613b9a..5cc9d48 100644
--- a/data/window.ui
+++ b/data/window.ui
@@ -23,8 +23,10 @@
             <property name="orientation">vertical</property>
             <property name="width-request">200</property>
             <child>
-              <object class="GtkHeaderBar" id="sidebar-headerbar">
-                <property name="show-title-buttons">False</property>
+              <object class="AdwHeaderBar" id="sidebarHeaderbar">
+                <binding name="show-end-title-buttons">
+                  <lookup name="folded">leaflet</lookup>
+                </binding>
                 <property name="title-widget">
                   <object class="AdwWindowTitle">
                     <property name="title" translatable="yes">Characters</property>
@@ -102,8 +104,7 @@
           <object class="GtkBox" id="container">
             <property name="orientation">vertical</property>
             <child>
-              <object class="GtkHeaderBar" id="main-headerbar">
-                <property name="show-title-buttons">True</property>
+              <object class="AdwHeaderBar" id="mainHeaderbar">
                 <property name="title-widget">
                   <object class="AdwWindowTitle" id="windowTitle" />
                 </property>
@@ -211,8 +212,8 @@
   <object class="GtkSizeGroup">
     <property name="mode">vertical</property>
     <widgets>
-      <widget name="sidebar-headerbar"/>
-      <widget name="main-headerbar"/>
+      <widget name="sidebarHeaderbar"/>
+      <widget name="mainHeaderbar"/>
     </widgets>
   </object>
 </interface>


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