aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-03 15:25:52 -0500
committerTed Gould <ted@canonical.com>2009-04-03 15:25:52 -0500
commit7d22f35beea1d45b0c2ca5cc589b17050179ab30 (patch)
tree743087427ffe88138bca7a8a1e8e10eb293c71e1
parent151d978352348e6532eb5e10a375f3c9f831be15 (diff)
downloadayatana-indicator-messages-7d22f35beea1d45b0c2ca5cc589b17050179ab30.tar.gz
ayatana-indicator-messages-7d22f35beea1d45b0c2ca5cc589b17050179ab30.tar.bz2
ayatana-indicator-messages-7d22f35beea1d45b0c2ca5cc589b17050179ab30.zip
Showing some interest in teh clients we talk to.
-rw-r--r--src/app-menu-item.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index 4fe3298..f6afa02 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -160,6 +160,9 @@ app_menu_item_new (IndicateListener * listener, IndicateListenerServer * server)
g_signal_connect(G_OBJECT(self), "activate", G_CALLBACK(activate_cb), NULL);
+ indicate_listener_server_show_interest(listener, server, INDICATE_INTEREST_SERVER_DISPLAY);
+ indicate_listener_server_show_interest(listener, server, INDICATE_INTEREST_SERVER_SIGNAL);
+
return self;
}
@@ -179,6 +182,11 @@ type_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * v
/* For IM and Microblogging we want the individual items, not a count */
priv->count_on_label = TRUE;
update_label(self);
+
+ indicate_listener_server_show_interest(listener, server, INDICATE_INTEREST_INDICATOR_COUNT);
+ } else {
+ indicate_listener_server_show_interest(listener, server, INDICATE_INTEREST_INDICATOR_DISPLAY);
+ indicate_listener_server_show_interest(listener, server, INDICATE_INTEREST_INDICATOR_SIGNAL);
}
return;