[gnome-clocks] Actually updates the world clocks
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Actually updates the world clocks
- Date: Sun, 3 Mar 2013 20:54:48 +0000 (UTC)
commit 0f85ded654ed14a73666d620c237eba504c7d1f4
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Mar 3 21:52:35 2013 +0100
Actually updates the world clocks
src/world.vala | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/world.vala b/src/world.vala
index 39c0f9a..07d3630 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -112,7 +112,7 @@ private class Item : Object, ContentItem {
tick ();
}
- private void tick () {
+ public void tick () {
var wallclock = Utils.WallClock.get_default ();
local_time = wallclock.date_time;
date_time = local_time.to_timezone (time_zone);
@@ -295,6 +295,15 @@ public class MainPanel : Gd.Stack, Clocks.Clock {
visible_child = content_view;
show_all ();
+
+ // Start ticking...
+ Utils.WallClock.get_default ().tick.connect (() => {
+ foreach (var l in locations) {
+ l.tick();
+ }
+ content_view.queue_draw ();
+ standalone.update ();
+ });
}
private void load () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]