aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-17 23:42:54 -0600
committerTed Gould <ted@gould.cx>2010-02-17 23:42:54 -0600
commit4a297fec6d7fbc75035aa7d3d1eedb90bea98d15 (patch)
treee82a0d0f448e9b9a37a674b952365d6585b13e53
parent6868e64c17ba4aea5f8aa22b84a6518119b6754e (diff)
downloadayatana-indicator-session-4a297fec6d7fbc75035aa7d3d1eedb90bea98d15.tar.gz
ayatana-indicator-session-4a297fec6d7fbc75035aa7d3d1eedb90bea98d15.tar.bz2
ayatana-indicator-session-4a297fec6d7fbc75035aa7d3d1eedb90bea98d15.zip
Switching users over to user items
-rw-r--r--src/session-service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session-service.c b/src/session-service.c
index fed4446..1a01174 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -495,7 +495,9 @@ rebuild_items (DbusmenuMenuitem *root,
user->service = service;
mi = dbusmenu_menuitem_new ();
- dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_LABEL, user->real_name);
+ dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_TYPE, USER_ITEM_TYPE);
+ dbusmenu_menuitem_property_set (mi, USER_ITEM_PROP_NAME, user->real_name);
+ dbusmenu_menuitem_property_set_bool (mi, USER_ITEM_PROP_LOGGED_IN, user->sessions != NULL);
dbusmenu_menuitem_child_append (root, mi);
g_signal_connect (G_OBJECT (mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_user_session), user);
}