diff options
author | Ted Gould <ted@gould.cx> | 2010-02-18 09:36:34 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-18 09:36:34 -0600 |
commit | fc732a57ad37e295233804a37419e39cefff5683 (patch) | |
tree | 757e9e911e42c083a1a813700bc639053687aee1 /src/session-service.c | |
parent | 9dab152713df2694ed4f447561bfbd31a51479e9 (diff) | |
parent | 4a297fec6d7fbc75035aa7d3d1eedb90bea98d15 (diff) | |
download | ayatana-indicator-session-fc732a57ad37e295233804a37419e39cefff5683.tar.gz ayatana-indicator-session-fc732a57ad37e295233804a37419e39cefff5683.tar.bz2 ayatana-indicator-session-fc732a57ad37e295233804a37419e39cefff5683.zip |
Adding in user items
Diffstat (limited to 'src/session-service.c')
-rw-r--r-- | src/session-service.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/session-service.c b/src/session-service.c index d074cb8..9fb9ee7 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -445,7 +445,9 @@ rebuild_items (DbusmenuMenuitem *root, if (check_guest_session ()) { mi = dbusmenu_menuitem_new (); - dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Guest Session")); + dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_TYPE, USER_ITEM_TYPE); + dbusmenu_menuitem_property_set (mi, USER_ITEM_PROP_NAME, _("Guest Session")); + dbusmenu_menuitem_property_set_bool (mi, USER_ITEM_PROP_LOGGED_IN, FALSE); dbusmenu_menuitem_child_append (root, mi); g_signal_connect (G_OBJECT (mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_guest_session), NULL); } @@ -495,7 +497,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); } |