[gthumb] use gtk_alignment instead of empty labels to add paddings



commit 31c3202244e3c9f3590410bd65f37eee751358cb
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Mar 2 11:46:24 2010 +0100

    use gtk_alignment instead of empty labels to add paddings

 .../data/ui/image-viewer-preferences.ui            |   61 ++-----------------
 extensions/pixbuf_savers/data/ui/tiff-options.ui   |   38 ++----------
 extensions/resize_images/data/ui/resize-images.ui  |   26 ++------
 3 files changed, 20 insertions(+), 105 deletions(-)
---
diff --git a/extensions/image_viewer/data/ui/image-viewer-preferences.ui b/extensions/image_viewer/data/ui/image-viewer-preferences.ui
index c5f1518..cc6a880 100644
--- a/extensions/image_viewer/data/ui/image-viewer-preferences.ui
+++ b/extensions/image_viewer/data/ui/image-viewer-preferences.ui
@@ -38,19 +38,9 @@
           </packing>
         </child>
         <child>
-          <object class="GtkHBox" id="hbox119">
+          <object class="GtkAlignment" id="alignment1">
             <property name="visible">True</property>
-            <child>
-              <object class="GtkLabel" id="label188">
-                <property name="visible">True</property>
-                <property name="label">    </property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
-                <property name="position">0</property>
-              </packing>
-            </child>
+            <property name="left_padding">12</property>
             <child>
               <object class="GtkVBox" id="vbox1">
                 <property name="visible">True</property>
@@ -85,15 +75,9 @@
                   </packing>
                 </child>
               </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="position">1</property>
-              </packing>
             </child>
           </object>
           <packing>
-            <property name="expand">False</property>
-            <property name="fill">False</property>
             <property name="position">1</property>
           </packing>
         </child>
@@ -134,19 +118,9 @@
           </packing>
         </child>
         <child>
-          <object class="GtkHBox" id="hbox117">
+          <object class="GtkAlignment" id="alignment2">
             <property name="visible">True</property>
-            <child>
-              <object class="GtkLabel" id="label186">
-                <property name="visible">True</property>
-                <property name="label">    </property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
-                <property name="position">0</property>
-              </packing>
-            </child>
+            <property name="left_padding">12</property>
             <child>
               <object class="GtkVBox" id="vbox60">
                 <property name="visible">True</property>
@@ -159,7 +133,6 @@
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
                     <property name="use_underline">True</property>
-                    <property name="active">True</property>
                     <property name="draw_indicator">True</property>
                     <property name="group">opt_zoom_quality_low</property>
                   </object>
@@ -176,6 +149,7 @@
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
                     <property name="use_underline">True</property>
+                    <property name="active">True</property>
                     <property name="draw_indicator">True</property>
                   </object>
                   <packing>
@@ -185,14 +159,9 @@
                   </packing>
                 </child>
               </object>
-              <packing>
-                <property name="position">1</property>
-              </packing>
             </child>
           </object>
           <packing>
-            <property name="expand">False</property>
-            <property name="fill">False</property>
             <property name="position">1</property>
           </packing>
         </child>
@@ -233,19 +202,9 @@
           </packing>
         </child>
         <child>
-          <object class="GtkHBox" id="hbox3">
+          <object class="GtkAlignment" id="alignment3">
             <property name="visible">True</property>
-            <child>
-              <object class="GtkLabel" id="label2">
-                <property name="visible">True</property>
-                <property name="label">    </property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
-                <property name="position">0</property>
-              </packing>
-            </child>
+            <property name="left_padding">12</property>
             <child>
               <object class="GtkHBox" id="hbox1">
                 <property name="visible">True</property>
@@ -275,15 +234,9 @@
                   </packing>
                 </child>
               </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="position">1</property>
-              </packing>
             </child>
           </object>
           <packing>
-            <property name="expand">False</property>
-            <property name="fill">False</property>
             <property name="position">1</property>
           </packing>
         </child>
diff --git a/extensions/pixbuf_savers/data/ui/tiff-options.ui b/extensions/pixbuf_savers/data/ui/tiff-options.ui
index e9666f3..e33c512 100644
--- a/extensions/pixbuf_savers/data/ui/tiff-options.ui
+++ b/extensions/pixbuf_savers/data/ui/tiff-options.ui
@@ -3,16 +3,16 @@
   <requires lib="gtk+" version="2.16"/>
   <!-- interface-naming-policy toplevel-contextual -->
   <object class="GtkAdjustment" id="tiff_hdpi_adjustment">
-    <property name="value">72</property>
     <property name="lower">1</property>
     <property name="upper">10000</property>
+    <property name="value">72</property>
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
   </object>
   <object class="GtkAdjustment" id="tiff_vdpi_adjustment">
-    <property name="value">72</property>
     <property name="lower">1</property>
     <property name="upper">10000</property>
+    <property name="value">72</property>
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
   </object>
@@ -42,19 +42,9 @@
           </packing>
         </child>
         <child>
-          <object class="GtkHBox" id="hbox65">
+          <object class="GtkAlignment" id="alignment1">
             <property name="visible">True</property>
-            <child>
-              <object class="GtkLabel" id="label129">
-                <property name="visible">True</property>
-                <property name="label">    </property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
-                <property name="position">0</property>
-              </packing>
-            </child>
+            <property name="left_padding">12</property>
             <child>
               <object class="GtkVBox" id="vbox44">
                 <property name="visible">True</property>
@@ -109,9 +99,6 @@
                   </packing>
                 </child>
               </object>
-              <packing>
-                <property name="position">1</property>
-              </packing>
             </child>
           </object>
           <packing>
@@ -145,19 +132,9 @@
           </packing>
         </child>
         <child>
-          <object class="GtkHBox" id="hbox66">
+          <object class="GtkAlignment" id="alignment2">
             <property name="visible">True</property>
-            <child>
-              <object class="GtkLabel" id="label131">
-                <property name="visible">True</property>
-                <property name="label">    </property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
-                <property name="position">0</property>
-              </packing>
-            </child>
+            <property name="left_padding">12</property>
             <child>
               <object class="GtkTable" id="table12">
                 <property name="visible">True</property>
@@ -265,9 +242,6 @@
                   </packing>
                 </child>
               </object>
-              <packing>
-                <property name="position">1</property>
-              </packing>
             </child>
           </object>
           <packing>
diff --git a/extensions/resize_images/data/ui/resize-images.ui b/extensions/resize_images/data/ui/resize-images.ui
index d8863b1..e332844 100644
--- a/extensions/resize_images/data/ui/resize-images.ui
+++ b/extensions/resize_images/data/ui/resize-images.ui
@@ -3,16 +3,16 @@
   <requires lib="gtk+" version="2.16"/>
   <!-- interface-naming-policy toplevel-contextual -->
   <object class="GtkAdjustment" id="width_adjustment">
-    <property name="value">2</property>
     <property name="lower">2</property>
     <property name="upper">10000</property>
+    <property name="value">2</property>
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
   </object>
   <object class="GtkAdjustment" id="height_adjustment">
-    <property name="value">2</property>
     <property name="lower">2</property>
     <property name="upper">10000</property>
+    <property name="value">2</property>
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
   </object>
@@ -74,19 +74,9 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkHBox" id="hbox72">
+                  <object class="GtkAlignment" id="alignment2">
                     <property name="visible">True</property>
-                    <child>
-                      <object class="GtkLabel" id="label105">
-                        <property name="visible">True</property>
-                        <property name="label">    </property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">False</property>
-                        <property name="position">0</property>
-                      </packing>
-                    </child>
+                    <property name="left_padding">12</property>
                     <child>
                       <object class="GtkVBox" id="vbox62">
                         <property name="visible">True</property>
@@ -131,6 +121,7 @@
                               <object class="GtkSpinButton" id="width_spinbutton">
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
+                                <property name="invisible_char">&#x25CF;</property>
                                 <property name="width_chars">6</property>
                                 <property name="adjustment">width_adjustment</property>
                                 <property name="climb_rate">1</property>
@@ -146,6 +137,7 @@
                               <object class="GtkSpinButton" id="height_spinbutton">
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
+                                <property name="invisible_char">&#x25CF;</property>
                                 <property name="width_chars">6</property>
                                 <property name="adjustment">height_adjustment</property>
                                 <property name="climb_rate">1</property>
@@ -212,13 +204,9 @@
                           </packing>
                         </child>
                       </object>
-                      <packing>
-                        <property name="position">1</property>
-                      </packing>
                     </child>
                   </object>
                   <packing>
-                    <property name="expand">False</property>
                     <property name="position">1</property>
                   </packing>
                 </child>
@@ -255,8 +243,8 @@
                     <child>
                       <object class="GtkFileChooserButton" id="destination_filechooserbutton">
                         <property name="visible">True</property>
-                        <property name="create_folders">False</property>
                         <property name="action">select-folder</property>
+                        <property name="create_folders">False</property>
                         <property name="title" translatable="yes">Choose destination folder</property>
                       </object>
                     </child>



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