[tracker] tracker-preferences: Make the Scale widgets (which were vertical) horizontal



commit b996bcc873e835ea208b8dafc07adf24c95014fd
Author: Martyn Russell <martyn lanedo com>
Date:   Fri May 9 12:34:41 2014 +0100

    tracker-preferences: Make the Scale widgets (which were vertical) horizontal
    
    Looks better

 src/tracker-preferences/tracker-preferences.ui |   65 ++++++++++++++++++-----
 1 files changed, 51 insertions(+), 14 deletions(-)
---
diff --git a/src/tracker-preferences/tracker-preferences.ui b/src/tracker-preferences/tracker-preferences.ui
index ffa55c4..637c8d7 100644
--- a/src/tracker-preferences/tracker-preferences.ui
+++ b/src/tracker-preferences/tracker-preferences.ui
@@ -383,10 +383,10 @@ This option allows you to make Tracker take a back seat and not eat up too much
                               </packing>
                             </child>
                             <child>
-                              <object class="GtkBox" id="vbox13">
+                              <object class="GtkBox" id="hbox13">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
-                                <property name="orientation">vertical</property>
+                                <property name="spacing">12</property>
                                 <child>
                                   <object class="GtkLabel" id="label_disk_space_limit">
                                     <property name="visible">True</property>
@@ -405,16 +405,16 @@ This option allows you to make Tracker take a back seat and not eat up too much
                                 </child>
                                 <child>
                                   <object class="GtkScale" id="hscale_disk_space_limit">
-                                    <property name="orientation">horizontal</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="adjustment">adjustment_disk_space_limit</property>
                                     <property name="round_digits">0</property>
                                     <property name="digits">0</property>
+                                    <property name="value_pos">left</property>
                                     <signal name="format-value" 
handler="tracker_preferences_hscale_disk_space_limit_format_value_cb" swapped="no"/>
                                   </object>
                                   <packing>
-                                    <property name="expand">False</property>
+                                    <property name="expand">True</property>
                                     <property name="fill">True</property>
                                     <property name="position">1</property>
                                   </packing>
@@ -465,16 +465,17 @@ This option allows you to make Tracker take a back seat and not eat up too much
                             <property name="can_focus">False</property>
                             <property name="orientation">vertical</property>
                             <child>
-                              <object class="GtkLabel" id="label_device_drop_threshold1">
+                              <object class="GtkLabel" id="label_device_drop_threshold">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="xalign">0</property>
                                 <property name="yalign">0</property>
                                 <property name="xpad">3</property>
                                 <property name="ypad">4</property>
-                                <property name="label" translatable="yes">Days before deleting removable 
devices / files since last mounted:</property>
+                                <property name="label" translatable="yes">Indexed content from removable 
devices that have not been inserted for a while, are cleaned up to avoid build up of unused 
resources.</property>
                                 <property name="use_underline">True</property>
-                                <property name="mnemonic_widget">hscale_drop_device_threshold</property>
+                                <property name="wrap">True</property>
+                                <property name="max_width_chars">20</property>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
@@ -483,14 +484,43 @@ This option allows you to make Tracker take a back seat and not eat up too much
                               </packing>
                             </child>
                             <child>
-                              <object class="GtkScale" id="hscale_drop_device_threshold">
-                                <property name="orientation">horizontal</property>
+                              <object class="GtkBox" id="box1">
                                 <property name="visible">True</property>
-                                <property name="can_focus">True</property>
-                                <property name="adjustment">adjustment_drop_device_threshold</property>
-                                <property name="round_digits">0</property>
-                                <property name="digits">0</property>
-                                <signal name="format-value" 
handler="tracker_preferences_hscale_drop_device_threshold_format_value_cb" swapped="no"/>
+                                <property name="can_focus">False</property>
+                                <property name="spacing">12</property>
+                                <child>
+                                  <object class="GtkLabel" id="label_device_drop_threshold1">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">False</property>
+                                    <property name="xalign">0</property>
+                                    <property name="yalign">0</property>
+                                    <property name="xpad">3</property>
+                                    <property name="ypad">4</property>
+                                    <property name="label" translatable="yes">Days before deleting removable 
devices:</property>
+                                    <property name="use_underline">True</property>
+                                  </object>
+                                  <packing>
+                                    <property name="expand">False</property>
+                                    <property name="fill">True</property>
+                                    <property name="position">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkScale" id="hscale_drop_device_threshold">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">True</property>
+                                    <property name="adjustment">adjustment_drop_device_threshold</property>
+                                    <property name="round_digits">0</property>
+                                    <property name="digits">0</property>
+                                    <property name="value_pos">left</property>
+                                    <signal name="format-value" 
handler="tracker_preferences_hscale_drop_device_threshold_format_value_cb" swapped="no"/>
+                                  </object>
+                                  <packing>
+                                    <property name="expand">True</property>
+                                    <property name="fill">True</property>
+                                    <property name="position">1</property>
+                                  </packing>
+                                </child>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
@@ -527,6 +557,9 @@ This option allows you to make Tracker take a back seat and not eat up too much
                 <property name="can_focus">False</property>
                 <property name="label" translatable="yes">Indexing</property>
               </object>
+              <packing>
+                <property name="tab_fill">False</property>
+              </packing>
             </child>
             <child>
               <object class="GtkBox" id="vbox_locations">
@@ -947,6 +980,7 @@ Those which are the same are disabled!</property>
               </object>
               <packing>
                 <property name="position">1</property>
+                <property name="tab_fill">False</property>
               </packing>
             </child>
             <child>
@@ -1413,6 +1447,7 @@ Most commonly this is used to ignore directories like *~, *.o, *.la, etc</proper
               </object>
               <packing>
                 <property name="position">2</property>
+                <property name="tab_fill">False</property>
               </packing>
             </child>
             <child>
@@ -1586,6 +1621,7 @@ Most commonly this is used to ignore directories like *~, *.o, *.la, etc</proper
               </object>
               <packing>
                 <property name="position">3</property>
+                <property name="tab_fill">False</property>
               </packing>
             </child>
             <child>
@@ -1792,6 +1828,7 @@ Clicking this button will close the preferences too.</property>
               </object>
               <packing>
                 <property name="position">4</property>
+                <property name="tab_fill">False</property>
               </packing>
             </child>
           </object>


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