aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-31 10:49:10 -0500
committerTed Gould <ted@gould.cx>2011-03-31 10:49:10 -0500
commite45dba38faf7ea699cdd8cf9f2b1bd6a6fe6642a (patch)
treecb6bd3eaa7e90f88d751161033e74e2be943e446
parent51f85a5e06af1dec9fcbd25901b4a65ead6aa2cd (diff)
parent00aca04c636009c8fffe8bba01d42c269d85464b (diff)
downloadayatana-indicator-datetime-e45dba38faf7ea699cdd8cf9f2b1bd6a6fe6642a.tar.gz
ayatana-indicator-datetime-e45dba38faf7ea699cdd8cf9f2b1bd6a6fe6642a.tar.bz2
ayatana-indicator-datetime-e45dba38faf7ea699cdd8cf9f2b1bd6a6fe6642a.zip
Switching to using SystemIdleHintChanged
-rw-r--r--src/indicator-datetime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index ec08f92..a999f42 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -830,7 +830,7 @@ session_active_change_cb (GDBusProxy * proxy, gchar * sender_name, gchar * signa
{
// Just returned from suspend
IndicatorDatetime * self = INDICATOR_DATETIME(user_data);
- if (g_strcmp0(signal_name, "ActiveChanged") == 0) {
+ if (g_strcmp0(signal_name, "SystemIdleHintChanged") == 0 && g_variant_get_boolean(parameters) == FALSE) {
update_time(self);
}
return;