aboutsummaryrefslogtreecommitdiff
path: root/src/user-menu-mgr.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-14 12:27:04 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-14 12:27:04 -0500
commit4998ebc6c4f9f9ce742193a2ff29645f1fe065af (patch)
treed8baa89616c62b4e5f18029f26707a42525d8c55 /src/user-menu-mgr.c
parent23882f41847964edb5c67ff9fe7dd2c55fc9d38e (diff)
downloadayatana-indicator-session-4998ebc6c4f9f9ce742193a2ff29645f1fe065af.tar.gz
ayatana-indicator-session-4998ebc6c4f9f9ce742193a2ff29645f1fe065af.tar.bz2
ayatana-indicator-session-4998ebc6c4f9f9ce742193a2ff29645f1fe065af.zip
a step in merging the two menus: remove the 'should show user menu' flag
Diffstat (limited to 'src/user-menu-mgr.c')
-rw-r--r--src/user-menu-mgr.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c
index 89fb841..2fe042a 100644
--- a/src/user-menu-mgr.c
+++ b/src/user-menu-mgr.c
@@ -294,12 +294,7 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self)
{
/* TODO: This needs to be updated once the ability to query guest session support is available */
GList * users = users_service_dbus_get_user_list (self->users_dbus_interface);
- const gint user_count = g_list_length(users);
const gboolean guest_enabled = users_service_dbus_guest_session_enabled (self->users_dbus_interface);
- const gboolean is_guest = guest_enabled && is_this_guest_session();
- const gboolean other_users_exist = user_count>1 || (is_guest && user_count>0);
- const gboolean visible = !self->greeter_mode && should_show_user_menu() && other_users_exist;
- session_dbus_set_user_menu_visibility (self->session_dbus_interface, visible);
/* TODO we should really return here if the menu is not going to be shown. */