[gnome-panel] [wncklet] Fix spin buttons not working in workspace switcher preferences



commit bf628353b31092eb7a624af559b2d6193f1e67ab
Author: Sébastien Bacher <seb128 ubuntu com>
Date:   Tue Sep 8 01:37:09 2009 +0200

    [wncklet] Fix spin buttons not working in workspace switcher preferences
    
    There were missing GtkAdjustment objects in the ui file, probably lost
    during the conversion.

 applets/wncklet/workspace-switcher.ui |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/applets/wncklet/workspace-switcher.ui b/applets/wncklet/workspace-switcher.ui
index 2b84e7e..8de7fb3 100644
--- a/applets/wncklet/workspace-switcher.ui
+++ b/applets/wncklet/workspace-switcher.ui
@@ -78,7 +78,7 @@
                                   <object class="GtkSpinButton" id="num_rows_spin">
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
-                                    <property name="adjustment">adjustment2</property>
+                                    <property name="adjustment">num_rows_adjustment</property>
                                     <property name="climb_rate">1</property>
                                     <property name="numeric">True</property>
                                   </object>
@@ -169,7 +169,7 @@
                               <object class="GtkSpinButton" id="num_workspaces_spin">
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
-                                <property name="adjustment">adjustment1</property>
+                                <property name="adjustment">num_workspaces_adjustment</property>
                                 <property name="climb_rate">1</property>
                                 <property name="numeric">True</property>
                               </object>
@@ -306,4 +306,18 @@
       <action-widget response="0">done_button</action-widget>
     </action-widgets>
   </object>
+  <object class="GtkAdjustment" id="num_workspaces_adjustment">
+    <property name="value">1</property>
+    <property name="lower">1</property>
+    <property name="upper">36</property>
+    <property name="step_increment">1</property>
+    <property name="page_increment">10</property>
+  </object>
+  <object class="GtkAdjustment" id="num_rows_adjustment">
+    <property name="value">1</property>
+    <property name="lower">1</property>
+    <property name="upper">16</property>
+    <property name="step_increment">1</property>
+    <property name="page_increment">10</property>
+  </object>
 </interface>



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