[gnome-clocks] Remove unneeded function argument
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Remove unneeded function argument
- Date: Fri, 31 Aug 2012 19:52:41 +0000 (UTC)
commit 72807d002c9e1007416eda4e18f21f1df49707b8
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Aug 31 21:32:40 2012 +0200
Remove unneeded function argument
gnomeclocks/world.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomeclocks/world.py b/gnomeclocks/world.py
index 0b06379..182fb13 100644
--- a/gnomeclocks/world.py
+++ b/gnomeclocks/world.py
@@ -177,8 +177,7 @@ class DigitalClock():
if self.path and self.list_store:
self.list_store[self.path][1] = self.drawing.pixbuf
if self.standalone:
- self.standalone.update(img, t, systemClockFormat,
- self.sunrise, self.sunset)
+ self.standalone.update(img, t, self.sunrise, self.sunset)
self._last_time = t
return True
@@ -423,7 +422,7 @@ class StandaloneClock(Gtk.Box):
def get_name(self):
return GLib.markup_escape_text(self.location.get_city_name())
- def update(self, img, text, systemClockFormat, sunrise, sunset):
+ def update(self, img, text, sunrise, sunset):
size = 72000 # FIXME: (self.get_allocation().height / 300) * 72000
#if img:
# pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(img, 500, 380)
@@ -431,6 +430,7 @@ class StandaloneClock(Gtk.Box):
# self.img.set_from_pixbuf(pixbuf)
self.time_label.set_markup(
"<span size='%i' color='dimgray'><b>%s</b></span>" % (size, text))
+ systemClockFormat = SystemSettings.get_clock_format()
if systemClockFormat != self.systemClockFormat or \
sunrise != self.sunrise or sunset != self.sunset:
self.sunrise = sunrise
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]