diff options
author | Ted Gould <ted@canonical.com> | 2009-09-04 22:06:42 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-04 22:06:42 -0500 |
commit | d03f5dfaafc6d8eccc2f04865d062615df4167cb (patch) | |
tree | 94892d474a67ab7853eec87716fa01a1d918e071 /src | |
parent | f7cbbad880d7412004429888f0fe8bb4e809499d (diff) | |
download | ayatana-indicator-messages-d03f5dfaafc6d8eccc2f04865d062615df4167cb.tar.gz ayatana-indicator-messages-d03f5dfaafc6d8eccc2f04865d062615df4167cb.tar.bz2 ayatana-indicator-messages-d03f5dfaafc6d8eccc2f04865d062615df4167cb.zip |
Fleshing out indicator changing the attention parameter.
Diffstat (limited to 'src')
-rw-r--r-- | src/messages-service.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index 7f80620..f7b869e 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -561,6 +561,17 @@ im_time_changed (ImMenuItem * imitem, glong seconds, gpointer data) static void im_attention_changed (ImMenuItem * imitem, gboolean requestit, gpointer data) { + serverList_t * sl = (serverList_t *)data; + + if (requestit) { + sl->attention = TRUE; + message_service_dbus_set_attention(dbus_interface, TRUE); + } else { + server_attention(sl); + if (!sl->attention) { + check_attention(); + } + } return; } |