aboutsummaryrefslogtreecommitdiff
path: root/src/users-service-dbus.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-07 21:09:18 -0600
committerTed Gould <ted@gould.cx>2012-02-07 21:09:18 -0600
commit669d032147326fadfd606eb22efd5ca3e5c4d39a (patch)
tree9f22d3a09d1718d156728596596616231f231692 /src/users-service-dbus.c
parent374c13ec920a441b4481db53f6516ca78e79de91 (diff)
parent6c05bbbd892c117777b11662b7e86c0d201398ec (diff)
downloadayatana-indicator-session-669d032147326fadfd606eb22efd5ca3e5c4d39a.tar.gz
ayatana-indicator-session-669d032147326fadfd606eb22efd5ca3e5c4d39a.tar.bz2
ayatana-indicator-session-669d032147326fadfd606eb22efd5ca3e5c4d39a.zip
Merge U. Desktop
Diffstat (limited to 'src/users-service-dbus.c')
-rw-r--r--src/users-service-dbus.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c
index 971b854..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);
}
@@ -719,7 +718,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 +822,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,