[gnome-clocks] Do not allow more than 2 characters in the spinbuttons



commit a5c1fc7675e4338554d02836ec2cadb593a842b0
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Sep 15 21:09:12 2013 +0200

    Do not allow more than 2 characters in the spinbuttons

 data/ui/alarmsetupdialog.ui |    2 ++
 data/ui/timer.ui            |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/alarmsetupdialog.ui b/data/ui/alarmsetupdialog.ui
index 451f646..9cc4d54 100644
--- a/data/ui/alarmsetupdialog.ui
+++ b/data/ui/alarmsetupdialog.ui
@@ -124,6 +124,7 @@
                   <object class="GtkSpinButton" id="m_spinbutton">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="max_length">2</property>
                     <property name="invisible_char">●</property>
                     <property name="activates_default">True</property>
                     <property name="text">0</property>
@@ -168,6 +169,7 @@
                   <object class="GtkSpinButton" id="h_spinbutton">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="max_length">2</property>
                     <property name="invisible_char">●</property>
                     <property name="activates_default">True</property>
                     <property name="text">0</property>
diff --git a/data/ui/timer.ui b/data/ui/timer.ui
index 16ae5bf..c5a17eb 100644
--- a/data/ui/timer.ui
+++ b/data/ui/timer.ui
@@ -59,6 +59,7 @@
                   <object class="GtkSpinButton" id="h_spinbutton">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="max_length">2</property>
                     <property name="invisible_char">●</property>
                     <property name="xalign">0.5</property>
                     <property name="invisible_char_set">True</property>
@@ -100,6 +101,7 @@
                   <object class="GtkSpinButton" id="m_spinbutton">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="max_length">2</property>
                     <property name="invisible_char">●</property>
                     <property name="xalign">0.5</property>
                     <property name="invisible_char_set">True</property>
@@ -141,6 +143,7 @@
                   <object class="GtkSpinButton" id="s_spinbutton">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="max_length">2</property>
                     <property name="invisible_char">●</property>
                     <property name="xalign">0.5</property>
                     <property name="invisible_char_set">True</property>


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