aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-11-16 23:58:31 +0000
committerTarmac <Unknown>2013-11-16 23:58:31 +0000
commit7c23de6ab6e6c438b45dfce0a137022695480a40 (patch)
tree33b6e2892b2b448b390302dbe510bc6edf345e4a /src
parent163fdc206a108e990f70edff808a793e11e24be7 (diff)
parent2b3520c35c6e8a0db0217b0d8b02fe9098d8f7d3 (diff)
downloadayatana-indicator-datetime-7c23de6ab6e6c438b45dfce0a137022695480a40.tar.gz
ayatana-indicator-datetime-7c23de6ab6e6c438b45dfce0a137022695480a40.tar.bz2
ayatana-indicator-datetime-7c23de6ab6e6c438b45dfce0a137022695480a40.zip
In src/clock-live.c, pass the right pointer to on_detect_location_changed(). Fixes: https://bugs.launchpad.net/bugs/1251460.
Approved by PS Jenkins bot, Ted Gould.
Diffstat (limited to 'src')
-rw-r--r--src/clock-live.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/clock-live.c b/src/clock-live.c
index f2859e6..2a375fd 100644
--- a/src/clock-live.c
+++ b/src/clock-live.c
@@ -259,9 +259,8 @@ indicator_datetime_clock_live_init (IndicatorDatetimeClockLive * self)
self->priv = p;
p->settings = g_settings_new (SETTINGS_INTERFACE);
- g_signal_connect (p->settings, "changed::" SETTINGS_SHOW_DETECTED_S,
- G_CALLBACK(on_detect_location_changed), self);
-
+ g_signal_connect_swapped (p->settings, "changed::" SETTINGS_SHOW_DETECTED_S,
+ G_CALLBACK(on_detect_location_changed), self);
on_detect_location_changed (self);
}