aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-09-23 23:01:20 -0500
committerCody Russell <crussell@canonical.com>2009-09-23 23:01:20 -0500
commitafc84307f4de2b54bd680c9fe77afcc7f4fd9c58 (patch)
treea9130d6b000acd5a34e5414c48fc1df9f8c4f497 /src
parentb712e3b2d2b4394d351a9c9b36a9e7c655f774cf (diff)
downloadayatana-indicator-session-afc84307f4de2b54bd680c9fe77afcc7f4fd9c58.tar.gz
ayatana-indicator-session-afc84307f4de2b54bd680c9fe77afcc7f4fd9c58.tar.bz2
ayatana-indicator-session-afc84307f4de2b54bd680c9fe77afcc7f4fd9c58.zip
modify count in user_added()/user_removed()
Diffstat (limited to 'src')
-rw-r--r--src/users-service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/users-service.c b/src/users-service.c
index 9884a56..9dbf218 100644
--- a/src/users-service.c
+++ b/src/users-service.c
@@ -223,6 +223,7 @@ user_added (UsersServiceDbus *service,
DbusmenuMenuitem *root = (DbusmenuMenuitem *)user_data;
users = g_list_append (users, user);
+ count++;
rebuild_items (root, service);
}
@@ -235,6 +236,7 @@ user_removed (UsersServiceDbus *service,
DbusmenuMenuitem *root = (DbusmenuMenuitem *)user_data;
users = g_list_remove (users, user);
+ count--;
rebuild_items (root, service);
}