[gnome-clocks] Force the spinbuttons to be numeric



commit a3fd010d5b54bf4dc3b897fb700d3fbfb12e5de6
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Sep 2 17:59:55 2012 +0200

    Force the spinbuttons to be numeric

 gnomeclocks/alarm.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index 5e1b76d..10efebf 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -200,6 +200,7 @@ class AlarmDialog(Gtk.Dialog):
         grid.attach(label, 0, 0, 1, 1)
 
         self.hourselect = Gtk.SpinButton()
+        self.hourselect.set_numeric(True)
         self.hourselect.set_increments(1.0, 1.0)
         self.hourselect.set_wrap(True)
         grid.attach(self.hourselect, 1, 0, 1, 1)
@@ -209,6 +210,7 @@ class AlarmDialog(Gtk.Dialog):
         grid.attach(label, 2, 0, 1, 1)
 
         self.minuteselect = Gtk.SpinButton()
+        self.minuteselect.set_numeric(True)
         self.minuteselect.set_increments(1.0, 1.0)
         self.minuteselect.set_wrap(True)
         self.minuteselect.connect('output', self._show_leading_zeros)



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