aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-08-30 17:17:19 +0100
committerConor Curran <conor.curran@canonical.com>2011-08-30 17:17:19 +0100
commita26d2f019ecbb67dacae83a07f7526759bb050f9 (patch)
treee1be8b84a3ecd29e165f05a434e48c5a1bddb2cc
parent267bef38a08ff9d7d401cf5027d1dc2876430ca4 (diff)
downloadayatana-indicator-session-a26d2f019ecbb67dacae83a07f7526759bb050f9.tar.gz
ayatana-indicator-session-a26d2f019ecbb67dacae83a07f7526759bb050f9.tar.bz2
ayatana-indicator-session-a26d2f019ecbb67dacae83a07f7526759bb050f9.zip
remove guest checking in generic user list, the guest user is never included in the user list returned therefore the check is pointless
-rw-r--r--src/user-menu-mgr.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c
index c11e0b9..a4308dd 100644
--- a/src/user-menu-mgr.c
+++ b/src/user-menu-mgr.c
@@ -192,7 +192,7 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode)
for (u = users; u != NULL; u = g_list_next (u)) {
user = u->data;
- //g_debug ("%p: %s", user, user->real_name);
+ g_debug ("%s: %s", user->user_name, user->real_name);
user->service = self->users_dbus_interface;
gboolean current_user = g_strcmp0 (user->user_name, g_get_user_name()) == 0;
if (current_user == TRUE){
@@ -201,21 +201,6 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode)
session_dbus_set_users_real_name (self->session_dbus_interface, user->real_name);
}
-
- if (g_str_has_prefix(user->user_name, "guest-") == TRUE) {
- /* Check to see if the guest has sessions and so therefore should
- get a check mark. */
- dbusmenu_menuitem_property_set_bool (guest_mi,
- USER_ITEM_PROP_LOGGED_IN,
- user->sessions != NULL);
- /* If we're showing user accounts, keep going through the list */
- if (self->user_count > MINIMUM_USERS && self->user_count < MAXIMUM_USERS) {
- continue;
- }
- /* If not, we can stop here */
- break;
- }
-
if (self->user_count > MINIMUM_USERS && self->user_count < MAXIMUM_USERS) {
mi = dbusmenu_menuitem_new ();
dbusmenu_menuitem_property_set (mi,