datetime: Fix the width of hour and minute spinbuttons

Since gtk+ commit cf4a41a856b56bcab6edaaf0e0a4f17ed5853525, the hour and
minute spin buttons in the datetime dialog grew too wide. gtk+ now
computes separate natural and minumum width; unfortunately the natural
width is too wide for us.

Force the spin buttons to have max width of 2 characters to fix this.
This commit is contained in:
Kalev Lember 2014-03-15 21:55:09 +01:00
parent 5f2ad4c40b
commit c3ab9b28b5

View file

@ -123,8 +123,8 @@
<object class="GtkSpinButton" id="h_spinbutton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="max_length">2</property>
<property name="invisible_char">●</property>
<property name="width_chars">2</property>
<property name="xalign">0.5</property>
<property name="input_purpose">digits</property>
<property name="orientation">vertical</property>
@ -160,8 +160,8 @@
<object class="GtkSpinButton" id="m_spinbutton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="max_length">2</property>
<property name="invisible_char">●</property>
<property name="width_chars">2</property>
<property name="xalign">0.5</property>
<property name="input_purpose">digits</property>
<property name="orientation">vertical</property>