aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-31 11:35:35 +0100
committerkarl-qdh <karl@qdh.org.uk>2011-03-31 11:35:35 +0100
commit00aca04c636009c8fffe8bba01d42c269d85464b (patch)
treecb6bd3eaa7e90f88d751161033e74e2be943e446 /src
parent54e0f63b2c419aa2555dfd514cbd273bd05260f6 (diff)
downloadayatana-indicator-datetime-00aca04c636009c8fffe8bba01d42c269d85464b.tar.gz
ayatana-indicator-datetime-00aca04c636009c8fffe8bba01d42c269d85464b.tar.bz2
ayatana-indicator-datetime-00aca04c636009c8fffe8bba01d42c269d85464b.zip
Switched to using SystemIdleHintChanged from ActiveState, appears ConsoleKit might have changed recently.
Diffstat (limited to 'src')
-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;