[gnome-clocks] timer: Set width-chars=2 property on the spinbuttons



commit 89bf3cfe16ac343dc61718fdf1abe0468cb25032
Author: Yanko Kaneti <yaneti declera com>
Date:   Tue Sep 18 16:26:52 2018 +0300

    timer: Set width-chars=2 property on the spinbuttons
    
    Set width-chars to help gtk pre-allocate the spin buttons
    drawing area regardless of font
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1630248

 data/ui/timer.ui | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/data/ui/timer.ui b/data/ui/timer.ui
index 40ff931..7c37afe 100644
--- a/data/ui/timer.ui
+++ b/data/ui/timer.ui
@@ -67,6 +67,7 @@
                     <property name="orientation">vertical</property>
                     <property name="adjustment">adjustment_hours</property>
                     <property name="numeric">True</property>
+                    <property name="width_chars">2</property>
                     <property name="wrap">True</property>
                     <signal name="output" handler="show_leading_zeros" swapped="no"/>
                     <signal name="changed" handler="update_start_button" swapped="no"/>
@@ -109,6 +110,7 @@
                     <property name="orientation">vertical</property>
                     <property name="adjustment">adjustment_minutes</property>
                     <property name="numeric">True</property>
+                    <property name="width_chars">2</property>
                     <property name="wrap">True</property>
                     <signal name="output" handler="show_leading_zeros" swapped="no"/>
                     <signal name="changed" handler="update_start_button" swapped="no"/>
@@ -152,6 +154,7 @@
                     <property name="orientation">vertical</property>
                     <property name="adjustment">adjustment_seconds</property>
                     <property name="numeric">True</property>
+                    <property name="width_chars">2</property>
                     <property name="wrap">True</property>
                     <signal name="output" handler="show_leading_zeros" swapped="no"/>
                     <signal name="changed" handler="update_start_button" swapped="no"/>
@@ -263,6 +266,7 @@
                     <property name="orientation">vertical</property>
                     <property name="adjustment">adjustment_hours</property>
                     <property name="numeric">True</property>
+                    <property name="width_chars">2</property>
                     <property name="wrap">True</property>
                     <signal name="output" handler="show_leading_zeros" swapped="no"/>
                     <signal name="changed" handler="update_start_button" swapped="no"/>
@@ -306,6 +310,7 @@
                     <property name="orientation">vertical</property>
                     <property name="adjustment">adjustment_minutes</property>
                     <property name="numeric">True</property>
+                    <property name="width_chars">2</property>
                     <property name="wrap">True</property>
                     <signal name="output" handler="show_leading_zeros" swapped="no"/>
                     <signal name="changed" handler="update_start_button" swapped="no"/>
@@ -349,6 +354,7 @@
                     <property name="orientation">vertical</property>
                     <property name="adjustment">adjustment_seconds</property>
                     <property name="numeric">True</property>
+                    <property name="width_chars">2</property>
                     <property name="wrap">True</property>
                     <signal name="output" handler="show_leading_zeros" swapped="no"/>
                     <signal name="changed" handler="update_start_button" swapped="no"/>


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