diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-07-14 13:06:38 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-07-14 13:06:38 +0100 |
commit | d8eae0b9560084bc68781d73c14fcb54cd53fd02 (patch) | |
tree | 5154306e3838d7617fa1c6dc8270317461e5b68b /src/session-service.c | |
parent | ee23d617b4f66ddeddaa355faef5760d62314823 (diff) | |
download | ayatana-indicator-session-d8eae0b9560084bc68781d73c14fcb54cd53fd02.tar.gz ayatana-indicator-session-d8eae0b9560084bc68781d73c14fcb54cd53fd02.tar.bz2 ayatana-indicator-session-d8eae0b9560084bc68781d73c14fcb54cd53fd02.zip |
dynamic user menu hiding on the way#
Diffstat (limited to 'src/session-service.c')
-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 2110241..812769e 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -490,6 +490,10 @@ rebuild_user_items (DbusmenuMenuitem *root, GList * users = NULL; users = users_service_dbus_get_user_list (service); guint user_count = g_list_length(users); + g_debug ("USER COUNT = %i", user_count); + // We only want to show this menu when we have more than one registered + // user + session_dbus_set_user_menu_visibility (session_dbus, user_count > 1); if (user_count > MINIMUM_USERS && user_count < MAXIMUM_USERS) { users = g_list_sort (users, (GCompareFunc)compare_users_by_username); |