[gtk+] widget-factory: Ensure spinbuttons are sized right



commit 770e308c9eaf8c99ea17701aa1e4cfc3380ccbae
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 23 15:52:09 2016 -0500

    widget-factory: Ensure spinbuttons are sized right
    
    GtkEntry now respects the padding set by the theme, so we
    need to ask the spin buttons to show 2 characters, otherwise
    they will be clipped.

 demos/widget-factory/widget-factory.ui |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 908c1bf..07a6ade 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -618,6 +618,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                                 <property name="visible">1</property>
                                 <property name="can_focus">1</property>
                                 <property name="invisible_char">•</property>
+                                <property name="width-chars">2</property>
+                                <property name="max-width-chars">2</property>
                                 <property name="adjustment">adjustment2</property>
                               </object>
                               <packing>
@@ -631,6 +633,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                                 <property name="can_focus">1</property>
                                 <property name="invisible_char">•</property>
                                 <property name="sensitive">0</property>
+                                <property name="width-chars">2</property>
+                                <property name="max-width-chars">2</property>
                               </object>
                               <packing>
                                 <property name="fill">0</property>


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