aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-04 22:06:42 -0500
committerTed Gould <ted@canonical.com>2009-09-04 22:06:42 -0500
commitd03f5dfaafc6d8eccc2f04865d062615df4167cb (patch)
tree94892d474a67ab7853eec87716fa01a1d918e071 /src
parentf7cbbad880d7412004429888f0fe8bb4e809499d (diff)
downloadayatana-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.c11
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;
}