From 151d978352348e6532eb5e10a375f3c9f831be15 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 3 Apr 2009 15:25:16 -0500 Subject: Adding in some consts to match the new prototypes better --- src/indicator-messages.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/indicator-messages.c b/src/indicator-messages.c index e8fed5b..83520ff 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -55,8 +55,8 @@ serverList_equal (gconstpointer a, gconstpointer b) pa = (serverList_t *)a; pb = (serverList_t *)b; - gchar * pas = INDICATE_LISTENER_SERVER_DBUS_NAME(pa->server); - gchar * pbs = INDICATE_LISTENER_SERVER_DBUS_NAME(pb->server); + const gchar * pas = INDICATE_LISTENER_SERVER_DBUS_NAME(pa->server); + const gchar * pbs = INDICATE_LISTENER_SERVER_DBUS_NAME(pb->server); return g_strcmp0(pas, pbs); } @@ -90,8 +90,8 @@ imList_equal (gconstpointer a, gconstpointer b) pa = (imList_t *)a; pb = (imList_t *)b; - gchar * pas = INDICATE_LISTENER_SERVER_DBUS_NAME(pa->server); - gchar * pbs = INDICATE_LISTENER_SERVER_DBUS_NAME(pb->server); + const gchar * pas = INDICATE_LISTENER_SERVER_DBUS_NAME(pa->server); + const gchar * pbs = INDICATE_LISTENER_SERVER_DBUS_NAME(pb->server); guint pai = INDICATE_LISTENER_INDICATOR_ID(pa->indicator); guint pbi = INDICATE_LISTENER_INDICATOR_ID(pb->indicator); -- cgit v1.2.3 From 7d22f35beea1d45b0c2ca5cc589b17050179ab30 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 3 Apr 2009 15:25:52 -0500 Subject: Showing some interest in teh clients we talk to. --- src/app-menu-item.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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; -- cgit v1.2.3