aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-17 23:39:11 -0600
committerTed Gould <ted@gould.cx>2010-02-17 23:39:11 -0600
commit6868e64c17ba4aea5f8aa22b84a6518119b6754e (patch)
tree669b548da8434448378b3454e4442b63ebf8f084 /src/session-service.c
parent7723397ac8f8f5875ffac86f007b9321a503a846 (diff)
downloadayatana-indicator-session-6868e64c17ba4aea5f8aa22b84a6518119b6754e.tar.gz
ayatana-indicator-session-6868e64c17ba4aea5f8aa22b84a6518119b6754e.tar.bz2
ayatana-indicator-session-6868e64c17ba4aea5f8aa22b84a6518119b6754e.zip
Switching the guest over to a user item.
Diffstat (limited to 'src/session-service.c')
-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 3303317..fed4446 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -444,7 +444,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);
}