aboutsummaryrefslogtreecommitdiff
path: root/src/user-menu-mgr.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-10-25 17:25:02 -0400
committerConor Curran <conor.curran@canonical.com>2011-10-25 17:25:02 -0400
commit3e2c3690091d05ecdcd29d1ed9f046abd94cee70 (patch)
tree047c4871f9bbf8f9191d494dab4427d0611ede02 /src/user-menu-mgr.c
parent9ddd6044078e8af15fe4334063638416120ac733 (diff)
downloadayatana-indicator-session-3e2c3690091d05ecdcd29d1ed9f046abd94cee70.tar.gz
ayatana-indicator-session-3e2c3690091d05ecdcd29d1ed9f046abd94cee70.tar.bz2
ayatana-indicator-session-3e2c3690091d05ecdcd29d1ed9f046abd94cee70.zip
removed the redundant max users limit on the user menu
Diffstat (limited to 'src/user-menu-mgr.c')
-rw-r--r--src/user-menu-mgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c
index efb3f7d..54e718f 100644
--- a/src/user-menu-mgr.c
+++ b/src/user-menu-mgr.c
@@ -191,7 +191,7 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode)
- if (self->user_count > MINIMUM_USERS && self->user_count < MAXIMUM_USERS) {
+ if (self->user_count > MINIMUM_USERS) {
users = g_list_sort (users, (GCompareFunc)compare_users_by_username);
}
@@ -206,7 +206,7 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode)
session_dbus_set_users_real_name (self->session_dbus_interface, user->real_name);
}
- if (self->user_count > MINIMUM_USERS && self->user_count < MAXIMUM_USERS) {
+ if (self->user_count > MINIMUM_USERS) {
mi = dbusmenu_menuitem_new ();
dbusmenu_menuitem_property_set (mi,
DBUSMENU_MENUITEM_PROP_TYPE,