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.
This commit is contained in:
Matthias Clasen 2016-01-23 15:52:09 -05:00
parent 8ba996a6db
commit 770e308c9e

View File

@ -618,6 +618,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="visible">1</property> <property name="visible">1</property>
<property name="can_focus">1</property> <property name="can_focus">1</property>
<property name="invisible_char">•</property> <property name="invisible_char">•</property>
<property name="width-chars">2</property>
<property name="max-width-chars">2</property>
<property name="adjustment">adjustment2</property> <property name="adjustment">adjustment2</property>
</object> </object>
<packing> <packing>
@ -631,6 +633,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="can_focus">1</property> <property name="can_focus">1</property>
<property name="invisible_char">•</property> <property name="invisible_char">•</property>
<property name="sensitive">0</property> <property name="sensitive">0</property>
<property name="width-chars">2</property>
<property name="max-width-chars">2</property>
</object> </object>
<packing> <packing>
<property name="fill">0</property> <property name="fill">0</property>