Merge lp:~karl-qdh/indicator-datetime/updateonresume into lp:indicator-datetime/0.3

Proposed by Karl Lattimer
Status: Merged
Merged at revision: 96
Proposed branch: lp:~karl-qdh/indicator-datetime/updateonresume
Merge into: lp:indicator-datetime/0.3
Diff against target: 12 lines (+1/-1)
1 file modified
src/indicator-datetime.c (+1/-1)
To merge this branch: bzr merge lp:~karl-qdh/indicator-datetime/updateonresume
Reviewer Review Type Date Requested Status
Ted Gould Pending
Review via email: mp+55724@code.launchpad.net

Description of the change

Simple change to a different signal and the clock will refresh on resume from suspend. It will also refresh whenever the session changes from idle to active too but there's not much we can do about that.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/indicator-datetime.c'
2--- src/indicator-datetime.c 2011-03-30 21:55:14 +0000
3+++ src/indicator-datetime.c 2011-03-31 10:39:45 +0000
4@@ -830,7 +830,7 @@
5 {
6 // Just returned from suspend
7 IndicatorDatetime * self = INDICATOR_DATETIME(user_data);
8- if (g_strcmp0(signal_name, "ActiveChanged") == 0) {
9+ if (g_strcmp0(signal_name, "SystemIdleHintChanged") == 0 && g_variant_get_boolean(parameters) == FALSE) {
10 update_time(self);
11 }
12 return;

Subscribers

People subscribed via source and target branches