From 3e2c3690091d05ecdcd29d1ed9f046abd94cee70 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 25 Oct 2011 17:25:02 -0400 Subject: removed the redundant max users limit on the user menu --- src/user-menu-mgr.c | 4 ++-- src/users-service-dbus.c | 9 ++------- src/users-service-dbus.h | 1 - 3 files changed, 4 insertions(+), 10 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, diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c index 971b854..76605f6 100644 --- a/src/users-service-dbus.c +++ b/src/users-service-dbus.c @@ -719,7 +719,7 @@ sync_users (UsersServiceDbus *self) g_return_if_fail(IS_USERS_SERVICE_DBUS(self)); UsersServiceDbusPrivate *priv = USERS_SERVICE_DBUS_GET_PRIVATE (self); - if (priv->count > MINIMUM_USERS && priv->count < MAXIMUM_USERS) + if (priv->count > MINIMUM_USERS) { GPtrArray *users = NULL; GError *error = NULL; @@ -823,12 +823,7 @@ user_added (DBusGProxy *proxy, UsersServiceDbus *service = (UsersServiceDbus *)user_data; UsersServiceDbusPrivate *priv = USERS_SERVICE_DBUS_GET_PRIVATE (service); priv->count++; - - if (priv->count < MAXIMUM_USERS) - { - sync_users (service); - } - + sync_users (service); g_signal_emit (service, signals[USER_ADDED], 0, diff --git a/src/users-service-dbus.h b/src/users-service-dbus.h index 25942df..b7db690 100644 --- a/src/users-service-dbus.h +++ b/src/users-service-dbus.h @@ -58,7 +58,6 @@ struct _UserData * got some gdm issues worked out. */ #define MINIMUM_USERS 0 -#define MAXIMUM_USERS 7 struct _UsersServiceDbus { GObject parent; -- cgit v1.2.3 From 137673612f6bc99a3abe00f0d99948f2fa0afce5 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 25 Oct 2011 17:44:28 -0400 Subject: tidy up --- src/users-service-dbus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c index 76605f6..09f916d 100644 --- a/src/users-service-dbus.c +++ b/src/users-service-dbus.c @@ -303,7 +303,6 @@ create_accounts_service_proxy (UsersServiceDbus *self) priv->count = users->len; g_ptr_array_free (users, TRUE); - sync_users (self); } -- cgit v1.2.3 From a6e32476fa56e4cd7f5f448b415a93ee3ba37255 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 25 Oct 2011 17:49:38 -0400 Subject: update the ignore file with the new translations --- .bzrignore | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.bzrignore b/.bzrignore index f5b88f9..5afa682 100644 --- a/.bzrignore +++ b/.bzrignore @@ -213,3 +213,31 @@ data/indicator-session-lock-screen.desktop.in data/indicator-session-lock-screen.desktop test-ascii-quotes test-space-ellipsis +po/af.gmo +po/an.gmo +po/bo.gmo +po/ca@valencia.gmo +po/cy.gmo +po/dv.gmo +po/fur.gmo +po/fy.gmo +po/gd.gmo +po/gv.gmo +po/hy.gmo +po/ka.gmo +po/km.gmo +po/ky.gmo +po/mg.gmo +po/mk.gmo +po/ml.gmo +po/my.gmo +po/ne.gmo +po/ny.gmo +po/os.gmo +po/sc.gmo +po/sd.gmo +po/ta.gmo +po/ta_LK.gmo +po/tt.gmo +po/ur.gmo +po/vec.gmo -- cgit v1.2.3 From f2b3d4838b6a175458f903aeb8a8d04fe7a842a5 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Fri, 28 Oct 2011 11:27:45 -0400 Subject: bump version for release --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b29db0b..0e20a91 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ AC_INIT(src/indicator-session.c) AC_PREREQ(2.53) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(indicator-session, 0.3.7) +AM_INIT_AUTOMAKE(indicator-session, 0.3.7.1) AM_MAINTAINER_MODE -- cgit v1.2.3