[gnome-clocks] Rename also the world clocks methods



commit 638c84b296b150332429cadc617f4d1dfeb789c9
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Dec 15 15:36:42 2012 +0100

    Rename also the world clocks methods
    
    For consistency with the last patch

 gnomeclocks/world.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnomeclocks/world.py b/gnomeclocks/world.py
index 351e6a9..d93626c 100644
--- a/gnomeclocks/world.py
+++ b/gnomeclocks/world.py
@@ -153,7 +153,7 @@ class ClockItem:
 
         self._update_sunrise_sunset()
 
-        self.update_time()
+        self.tick()
 
     def _get_location_name(self):
         nation = self.location
@@ -203,7 +203,7 @@ class ClockItem:
             self.sunrise_string = TimeString.format_time(self.sunrise)
             self.sunset_string = TimeString.format_time(self.sunset)
 
-    def update_time(self):
+    def tick(self):
         self.location_time = self._get_location_time()
         self.time_string = TimeString.format_time(self.location_time)
         self.day_string = self._get_day_string()
@@ -329,7 +329,7 @@ class World(Clock):
         self.standalone = ClockStandalone()
         self.notebook.append_page(self.standalone, None)
 
-        wallclock.connect("time-changed", self._update_clocks)
+        wallclock.connect("time-changed", self._tick_clocks)
 
     def _thumb_data_func(self, view, cell, store, i, data):
         clock = store.get_value(i, 2)
@@ -352,9 +352,9 @@ class World(Clock):
         elif mode is Clock.Mode.SELECTION:
             self.iconview.set_selection_mode(True)
 
-    def _update_clocks(self, *args):
+    def _tick_clocks(self, *args):
         for c in self.clocks:
-            c.update_time()
+            c.tick()
         self.iconview.queue_draw()
         self.standalone.update()
         return True



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