[gnome-clocks] Minor cleanup



commit 51cbcc65bb41b3283eaa243627efafbb798542d2
Author: Paolo Borelli <pborelli gnome org>
Date:   Thu Sep 6 21:51:25 2012 +0200

    Minor cleanup

 gnomeclocks/timer.py   |    4 ++--
 gnomeclocks/widgets.py |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomeclocks/timer.py b/gnomeclocks/timer.py
index a1c0c83..74ef584 100644
--- a/gnomeclocks/timer.py
+++ b/gnomeclocks/timer.py
@@ -95,11 +95,11 @@ class TimerWelcomeScreen(Gtk.Grid):
 
         spinner = Gtk.Box()
         spinner.pack_start(self.hours, False, False, 0)
-        colon = Gtk.Label('')
+        colon = Gtk.Label()
         colon.set_markup('<span font_desc=\"64.0\">:</span>')
         spinner.pack_start(colon, False, False, 0)
         spinner.pack_start(self.minutes, False, False, 0)
-        colon = Gtk.Label('')
+        colon = Gtk.Label()
         colon.set_markup('<span font_desc=\"64.0\">:</span>')
         spinner.pack_start(colon, False, False, 0)
         spinner.pack_start(self.seconds, False, False, 0)
diff --git a/gnomeclocks/widgets.py b/gnomeclocks/widgets.py
index 5900e61..3994453 100644
--- a/gnomeclocks/widgets.py
+++ b/gnomeclocks/widgets.py
@@ -129,7 +129,7 @@ class Spinner(Gtk.SpinButton):
         self.set_increments(1.0, 1.0)
         self.set_wrap(True)
         self.set_range(min_value, max_value)
-        attrs = Pango.parse_markup('<span font_desc=\"64.0\">00</span>', -1, "_")[1]
+        attrs = Pango.parse_markup('<span font_desc=\"64.0\">00</span>', -1, u'\x00')[1]
         self.set_attributes(attrs)
 
         self.connect('output', self._show_leading_zeros)



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