aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-messages.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-03-24 16:57:06 -0500
committerTed Gould <ted@canonical.com>2009-03-24 16:57:06 -0500
commit9137a01fe438d2d1c3b7e3037ebd5ea66bcae57d (patch)
tree65245cbb11fb32a86a8c92d1730f21b6d234e6ff /src/indicator-messages.c
parent908e7e4b29013ec23b7e4f7d21dae17a03907089 (diff)
downloadayatana-indicator-messages-9137a01fe438d2d1c3b7e3037ebd5ea66bcae57d.tar.gz
ayatana-indicator-messages-9137a01fe438d2d1c3b7e3037ebd5ea66bcae57d.tar.bz2
ayatana-indicator-messages-9137a01fe438d2d1c3b7e3037ebd5ea66bcae57d.zip
Making it so that an indicator gets displayed when someone logs in, eventually it disappears.
Diffstat (limited to 'src/indicator-messages.c')
-rw-r--r--src/indicator-messages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index c600460..0df7dfa 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -342,13 +342,13 @@ subtype_cb (IndicateListener * listener, IndicateListenerServer * server, Indica
g_debug("Message subtype: %s", propertydata);
- if (!strcmp(propertydata, "im")) {
+ if (!strcmp(propertydata, "im") || !strcmp(propertydata, "login")) {
imList_t * listItem = g_new(imList_t, 1);
listItem->server = server;
listItem->indicator = indicator;
g_debug("Building IM Item");
- ImMenuItem * menuitem = im_menu_item_new(listener, server, indicator);
+ ImMenuItem * menuitem = im_menu_item_new(listener, server, indicator, !strcmp(propertydata, "im"));
g_object_ref(G_OBJECT(menuitem));
listItem->menuitem = GTK_WIDGET(menuitem);