aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-04 21:17:59 -0500
committerTed Gould <ted@canonical.com>2009-09-04 21:17:59 -0500
commit01e4df1dbd970e35f209150b67f0c296e01d4f32 (patch)
tree615c90feaefc1e19c7f8fe55d188717c281d6756
parent8e7605cf161650a699449d95d39dd02231ab9142 (diff)
downloadayatana-indicator-messages-01e4df1dbd970e35f209150b67f0c296e01d4f32.tar.gz
ayatana-indicator-messages-01e4df1dbd970e35f209150b67f0c296e01d4f32.tar.bz2
ayatana-indicator-messages-01e4df1dbd970e35f209150b67f0c296e01d4f32.zip
Comments.
-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 764bcf4..dbc4d15 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -424,6 +424,7 @@ server_attention (serverList_t * slt)
return;
}
+ /* Check to see if any of the indicators want attention */
GList * pointer;
for (pointer = slt->imList; pointer != NULL; pointer = g_list_next(pointer)) {
imList_t * ilt = (imList_t *)pointer->data;
@@ -433,10 +434,14 @@ server_attention (serverList_t * slt)
}
}
+ /* Nope, no one */
slt->attention = FALSE;
return;
}
+/* A new server has been created on the indicate bus.
+ We need to check to see if we like it. And build
+ structures for it if so. */
static void
server_added (IndicateListener * listener, IndicateListenerServer * server, gchar * type, gpointer data)
{
@@ -497,6 +502,10 @@ server_added (IndicateListener * listener, IndicateListenerServer * server, gcha
return;
}
+/* The name of a server has changed, we probably
+ need to reorder the menu to keep it in alphabetical
+ order. This happens often after we read the destkop
+ file from disk. */
static void
server_name_changed (AppMenuItem * appitem, gchar * name, gpointer data)
{