diff options
author | Ted Gould <ted@canonical.com> | 2009-09-04 21:16:01 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-04 21:16:01 -0500 |
commit | 8e7605cf161650a699449d95d39dd02231ab9142 (patch) | |
tree | fda5618a0cd0c223b6f16bcc8be39d0b36e98281 | |
parent | 30926eccbe28028ae88294fa597bfa2217ccaa41 (diff) | |
download | ayatana-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.
-rw-r--r-- | src/messages-service.c | 9 |
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; } |