[Xword-commits] r124 - trunk

btb at garage.maemo.org btb at garage.maemo.org
Wed May 28 06:29:06 EEST 2008


Author: btb
Date: 2008-05-28 06:29:05 +0300 (Wed, 28 May 2008)
New Revision: 124

Modified:
   trunk/xword
Log:
ensure all clocks get initialized to 0:00


Modified: trunk/xword
===================================================================
--- trunk/xword	2008-05-28 03:20:38 UTC (rev 123)
+++ trunk/xword	2008-05-28 03:29:05 UTC (rev 124)
@@ -2085,6 +2085,7 @@
         b.set_is_important(True)
         self.clock_buttons.append(b)
         self.clock_buttons_handler_ids.append(handler_id)
+        self.idle_event()
 
         return len(self.clock_buttons) - 1
 
@@ -2106,7 +2107,6 @@
         self.create_separator_toolitem()
         pos = self.create_clock_button()
         self.toolbar.insert(self.clock_buttons[pos], -1)
-        self.idle_event()
 
         return toolbar
 
@@ -2219,9 +2219,9 @@
         else:
             total = int(self.clock_time)
         s = time_str(total)
-        sold = self.clock_buttons[0].get_label()
-        if sold <> s: 
-            for index in range(len(self.clock_buttons)):
+        for index in range(len(self.clock_buttons)):
+            sold = self.clock_buttons[index].get_label()
+            if sold <> s: 
                 self.clock_buttons[index].set_label(s)
 
         return True



More information about the Xword-commits mailing list