[sysprof/wip/gtk4-port: 94/132] libsysprof-ui: fix more margins and packing




commit dcd5cb3bef59857ff393ee0b83d09820a98bb48d
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 1 12:29:13 2021 -0700

    libsysprof-ui: fix more margins and packing

 src/libsysprof-ui/sysprof-failed-state-view.ui    | 36 ++++++++---------------
 src/libsysprof-ui/sysprof-recording-state-view.ui |  5 +++-
 2 files changed, 16 insertions(+), 25 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-failed-state-view.ui b/src/libsysprof-ui/sysprof-failed-state-view.ui
index 68f31768..5fc05642 100644
--- a/src/libsysprof-ui/sysprof-failed-state-view.ui
+++ b/src/libsysprof-ui/sysprof-failed-state-view.ui
@@ -20,24 +20,13 @@
             </style>
           </object>
         </child>
-        <child>
+        <child type="end">
           <object class="GtkLabel">
-            <property name="label" translatable="yes">Ouch, that hurt!</property>
+            <property name="vexpand">true</property>
             <property name="visible">true</property>
-            <style>
-              <class name="dim-label"/>
-            </style>
-            <attributes>
-              <attribute name="scale" value="2"/>
-              <attribute name="weight" value="bold"/>
-            </attributes>
           </object>
-          <packing>
-            <property name="pack-type">end</property>
-            <property name="position">2</property>
-          </packing>
         </child>
-        <child>
+        <child type="end">
           <object class="GtkLabel">
             <property name="label" translatable="yes">Something unexpectedly went wrong while trying to 
profile your system.</property>
             <property name="use-markup">true</property>
@@ -46,20 +35,19 @@
               <class name="dim-label"/>
             </style>
           </object>
-          <packing>
-            <property name="pack-type">end</property>
-            <property name="position">1</property>
-          </packing>
         </child>
-        <child>
+        <child type="end">
           <object class="GtkLabel">
-            <property name="vexpand">true</property>
+            <property name="label" translatable="yes">Ouch, that hurt!</property>
             <property name="visible">true</property>
+            <style>
+              <class name="dim-label"/>
+            </style>
+            <attributes>
+              <attribute name="scale" value="2"/>
+              <attribute name="weight" value="bold"/>
+            </attributes>
           </object>
-          <packing>
-            <property name="position">0</property>
-            <property name="pack-type">end</property>
-          </packing>
         </child>
       </object>
     </child>
diff --git a/src/libsysprof-ui/sysprof-recording-state-view.ui 
b/src/libsysprof-ui/sysprof-recording-state-view.ui
index 4bfccf89..d65da15b 100644
--- a/src/libsysprof-ui/sysprof-recording-state-view.ui
+++ b/src/libsysprof-ui/sysprof-recording-state-view.ui
@@ -5,7 +5,10 @@
       <object class="GtkBox">
         <property name="width-request">500</property>
         <property name="halign">center</property>
-        <property name="border-width">36</property>
+        <property name="margin-start">36</property>
+        <property name="margin-end">36</property>
+        <property name="margin-top">36</property>
+        <property name="margin-bottom">36</property>
         <property name="orientation">vertical</property>
         <property name="spacing">12</property>
         <property name="visible">true</property>


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