diff options
author | Ted Gould <ted@gould.cx> | 2010-03-16 21:58:59 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-16 21:58:59 -0500 |
commit | 2e0cbb1a5a969eb5b983e9b899a3638d5b8136d1 (patch) | |
tree | d24577cd61996d079a5888603cd7a86106ae8be1 /src | |
parent | 7e38445544d5d0b000336d99b3f91462e63523f5 (diff) | |
download | ayatana-indicator-session-2e0cbb1a5a969eb5b983e9b899a3638d5b8136d1.tar.gz ayatana-indicator-session-2e0cbb1a5a969eb5b983e9b899a3638d5b8136d1.tar.bz2 ayatana-indicator-session-2e0cbb1a5a969eb5b983e9b899a3638d5b8136d1.zip |
Setting the guest item once it gets built.
Diffstat (limited to 'src')
-rw-r--r-- | src/session-service.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c index bc88473..379a0a2 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -526,6 +526,9 @@ rebuild_items (DbusmenuMenuitem *root, } } + /* Set to NULL just incase we don't end up building one */ + users_service_dbus_set_guest_item(service, NULL); + /* Build all of the user switching items */ if (can_activate == TRUE) { @@ -543,6 +546,7 @@ rebuild_items (DbusmenuMenuitem *root, dbusmenu_menuitem_property_set_bool (guest_mi, USER_ITEM_PROP_LOGGED_IN, FALSE); dbusmenu_menuitem_child_append (root, guest_mi); g_signal_connect (G_OBJECT (guest_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_guest_session), NULL); + users_service_dbus_set_guest_item(service, guest_mi); } if (check_new_session ()) |