aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
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;
}