[gnome-clocks] Follow naming convention for callbacks



commit 82beb67982466777fa7611a4df53fe0d0a336054
Author: Paolo Borelli <pborelli gnome org>
Date:   Fri Aug 31 16:19:03 2012 +0200

    Follow naming convention for callbacks

 gnomeclocks/world.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomeclocks/world.py b/gnomeclocks/world.py
index 69c227d..0b06379 100644
--- a/gnomeclocks/world.py
+++ b/gnomeclocks/world.py
@@ -186,10 +186,10 @@ class DigitalClock():
     def get_sunrise_sunset(self):
         world = GWeather.Location.new_world(True)
         self.weather = GWeather.Info(location=self.location, world=world)
-        self.weather.connect('updated', self.weather_updated_callback)
+        self.weather.connect('updated', self._on_weather_updated)
         self.weather.update()
 
-    def weather_updated_callback(self, weather):
+    def _on_weather_updated(self, weather):
         # returned as the time here
         ok, sunrise = weather.get_value_sunrise()
         ok, sunset = weather.get_value_sunset()
@@ -339,10 +339,10 @@ class World(Clock):
 
     def open_new_dialog(self):
         window = NewWorldClockDialog(self.get_toplevel())
-        window.connect("response", self.on_dialog_response)
+        window.connect("response", self._on_dialog_response)
         window.show_all()
 
-    def on_dialog_response(self, dialog, response):
+    def _on_dialog_response(self, dialog, response):
         if response == 1:
             l = dialog.get_location()
             self.add_clock(l)



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