aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-04 21:16:01 -0500
committerTed Gould <ted@canonical.com>2009-09-04 21:16:01 -0500
commit8e7605cf161650a699449d95d39dd02231ab9142 (patch)
treefda5618a0cd0c223b6f16bcc8be39d0b36e98281 /src
parent30926eccbe28028ae88294fa597bfa2217ccaa41 (diff)
downloadayatana-indicator-messages-8e7605cf161650a699449d95d39dd02231ab9142.tar.gz
ayatana-indicator-messages-8e7605cf161650a699449d95d39dd02231ab9142.tar.bz2
ayatana-indicator-messages-8e7605cf161650a699449d95d39dd02231ab9142.zip
Fleshing out checking server attention by looking at all the indicators.
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index b6374f0..764bcf4 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -424,7 +424,16 @@ server_attention (serverList_t * slt)
return;
}
+ GList * pointer;
+ for (pointer = slt->imList; pointer != NULL; pointer = g_list_next(pointer)) {
+ imList_t * ilt = (imList_t *)pointer->data;
+ if (im_menu_item_get_attention(IM_MENU_ITEM(ilt->menuitem))) {
+ slt->attention = TRUE;
+ return;
+ }
+ }
+ slt->attention = FALSE;
return;
}