[gnome-disk-utility/wip/cdavis/ui-cleanups: 4/31] ui: Replace GtkHBox and GtkVBox




commit 2cf5f713e34781e5209ccaf138a89fdd1bfe9667
Author: Christopher Davis <brainblasted disroot org>
Date:   Fri Jan 8 14:37:07 2021 -0800

    ui: Replace GtkHBox and GtkVBox
    
    We can just use GtkBox with the "orientation" property

 src/disks/ui/disks.ui        | 11 +++++++----
 src/disks/ui/smart-dialog.ui |  3 ++-
 2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/disks/ui/disks.ui b/src/disks/ui/disks.ui
index 73799033..7e24058a 100644
--- a/src/disks/ui/disks.ui
+++ b/src/disks/ui/disks.ui
@@ -246,9 +246,10 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkVBox" id="vbox1">
+                      <object class="GtkBox">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
+                        <property name="orientation">vertical</property>
                         <property name="spacing">12</property>
                         <child>
                           <object class="GtkTable" id="devtab-drive-table">
@@ -791,16 +792,18 @@
                           </packing>
                         </child>
                         <child>
-                          <object class="GtkVBox" id="vbox3">
+                          <object class="GtkBox">
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
                             <property name="margin_start">12</property>
+                            <property name="orientation">vertical</property>
                             <child>
-                              <object class="GtkVBox" id="vbox4">
+                              <object class="GtkBox">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
+                                <property name="orientation">vertical</property>
                                 <child>
-                                  <object class="GtkHBox" id="devtab-grid-hbox">
+                                  <object class="GtkBox" id="devtab-grid-hbox">
                                     <property name="visible">True</property>
                                     <property name="can_focus">False</property>
                                     <child>
diff --git a/src/disks/ui/smart-dialog.ui b/src/disks/ui/smart-dialog.ui
index 4bc459ff..2597ee5f 100644
--- a/src/disks/ui/smart-dialog.ui
+++ b/src/disks/ui/smart-dialog.ui
@@ -350,11 +350,12 @@
               </packing>
             </child>
             <child>
-              <object class="GtkVBox" id="attributes-vbox">
+              <object class="GtkBox" id="attributes-vbox">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="margin_start">24</property>
                 <property name="margin_top">6</property>
+                <property name="orientation">vertical</property>
                 <property name="spacing">10</property>
                 <child>
                   <object class="GtkScrolledWindow" id="scrolledwindow1">


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