diff options
author | Ted Gould <ted@gould.cx> | 2010-02-17 23:39:11 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-17 23:39:11 -0600 |
commit | 6868e64c17ba4aea5f8aa22b84a6518119b6754e (patch) | |
tree | 669b548da8434448378b3454e4442b63ebf8f084 | |
parent | 7723397ac8f8f5875ffac86f007b9321a503a846 (diff) | |
download | ayatana-indicator-session-6868e64c17ba4aea5f8aa22b84a6518119b6754e.tar.gz ayatana-indicator-session-6868e64c17ba4aea5f8aa22b84a6518119b6754e.tar.bz2 ayatana-indicator-session-6868e64c17ba4aea5f8aa22b84a6518119b6754e.zip |
Switching the guest over to a user item.
-rw-r--r-- | src/session-service.c | 4 |
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); } |