aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages-service.c')
-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;
}