[sysprof/wip/gtk4-port: 87/131] window: fix pack-type and title




commit b225067dfffc913677317a5c207038c38dff6e04
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 1 11:27:08 2021 -0700

    window: fix pack-type and title

 src/sysprof/sysprof-window.ui | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)
---
diff --git a/src/sysprof/sysprof-window.ui b/src/sysprof/sysprof-window.ui
index 983b532a..01fab152 100644
--- a/src/sysprof/sysprof-window.ui
+++ b/src/sysprof/sysprof-window.ui
@@ -4,12 +4,12 @@
     <property name="default-height">750</property>
     <property name="icon-name">org.gnome.Sysprof-symbolic</property>
     <property name="show-menubar">false</property>
+    <property name="title" translatable="yes">Sysprof</property>
     <child type="titlebar">
       <object class="GtkHeaderBar">
-        <property name="show-close-button">true</property>
+        <property name="show-title-buttons">true</property>
         <property name="visible">true</property>
-        <property name="title" translatable="yes">Sysprof</property>
-        <child>
+        <child type="end">
           <object class="GtkMenuButton" id="menu_button">
             <property name="visible">true</property>
             <child>
@@ -22,11 +22,8 @@
               <class name="image-button"/>
             </style>
           </object>
-          <packing>
-            <property name="pack-type">end</property>
-          </packing>
         </child>
-        <child>
+        <child type="start">
           <object class="GtkButton" id="open_button">
             <property name="label" translatable="yes">_Open</property>
             <property name="action-name">app.open-capture</property>
@@ -34,11 +31,8 @@
             <property name="tooltip-text" translatable="yes">Open Recording… (Ctrl+O)</property>
             <property name="visible">true</property>
           </object>
-          <packing>
-            <property name="pack-type">start</property>
-          </packing>
         </child>
-        <child>
+        <child type="end">
           <object class="GtkLabel" id="stat_label">
             <property name="margin-end">12</property>
             <property name="xalign">1</property>
@@ -46,10 +40,6 @@
               <class name="dim-label"/>
             </style>
           </object>
-          <packing>
-            <property name="pack-type">end</property>
-            <property name="position">1</property>
-          </packing>
         </child>
       </object>
     </child>


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