aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-30 16:02:50 +0100
committerkarl-qdh <karl@qdh.org.uk>2011-03-30 16:02:50 +0100
commitf8923be6312878885431503e0ee372b1e11676ea (patch)
tree925d2a7624a710a4f828291c7a9ade9e2be2d10c /src/indicator-datetime.c
parentafdaa937487ff3db6077d851132ea7ae2353bf0f (diff)
downloadayatana-indicator-datetime-f8923be6312878885431503e0ee372b1e11676ea.tar.gz
ayatana-indicator-datetime-f8923be6312878885431503e0ee372b1e11676ea.tar.bz2
ayatana-indicator-datetime-f8923be6312878885431503e0ee372b1e11676ea.zip
Might not like that signal notation
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r--src/indicator-datetime.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index e55bfa0..addc2c2 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -379,7 +379,7 @@ system_proxy_cb (GObject * object, GAsyncResult * res, gpointer user_data)
g_error_free(error);
return;
}
- g_signal_connect(proxy, "g-signal::ActiveChanged", G_CALLBACK(session_active_change_cb), self);
+ g_signal_connect(proxy, "g-signal", G_CALLBACK(session_active_change_cb), self);
}
@@ -806,7 +806,9 @@ session_active_change_cb (GDBusProxy * proxy, gchar * sender_name, gchar * signa
{
// Just returned from suspend
IndicatorDatetime * self = INDICATOR_DATETIME(user_data);
- update_time(self);
+ if (g_strcmp0(signal_name, "ActiveChanged") == 0) {
+ update_time(self);
+ }
return;
}