aboutsummaryrefslogtreecommitdiff
path: root/src/users-service-dbus.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-13 14:41:31 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-13 14:41:31 -0500
commit146081cfecfe27e69a4b93a15782924d79c6c18e (patch)
tree3898bb3f5767169b602ed6fe9978cd4448146771 /src/users-service-dbus.h
parentb8c1cd566b533b84b3cb16f1dd24fecb388c62a9 (diff)
downloadayatana-indicator-session-146081cfecfe27e69a4b93a15782924d79c6c18e.tar.gz
ayatana-indicator-session-146081cfecfe27e69a4b93a15782924d79c6c18e.tar.bz2
ayatana-indicator-session-146081cfecfe27e69a4b93a15782924d79c6c18e.zip
Don't use all the new users that we get told about.
The issue is fringe cases where we get notified about a user we don't want to show, such as lightdm showing up after we've switched to the greeter. Instead, let's ask org.freedesktop.Accounts for a fresh list of users so that it can apply its internal filters to the user list.
Diffstat (limited to 'src/users-service-dbus.h')
-rw-r--r--src/users-service-dbus.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/users-service-dbus.h b/src/users-service-dbus.h
index bc153df..0f082c3 100644
--- a/src/users-service-dbus.h
+++ b/src/users-service-dbus.h
@@ -37,8 +37,8 @@ typedef struct _UsersServiceDbusClass UsersServiceDbusClass;
typedef struct _UsersServiceDbusPrivate UsersServiceDbusPrivate;
/**
- * A class which interacts with multiple DBus services to track
- * info which is useful to the interactor's user menu:
+ * A facade class which interacts with multiple DBus services to
+ * track info which is useful to the interactor's user menu:
*
* 1. A list of users to add to the user menu.
*
@@ -72,8 +72,7 @@ struct _UsersServiceDbusClass
GObjectClass parent_class;
/* Signals */
- void (* user_added) (UsersServiceDbus*, AccountsUser*, gpointer);
- void (* user_deleted) (UsersServiceDbus*, AccountsUser*, gpointer);
+ void (* user_list_changed) (UsersServiceDbus*, gpointer);
void (* user_logged_in_changed) (UsersServiceDbus*, AccountsUser*, gpointer);
void (* guest_logged_in_changed) (UsersServiceDbus*, gpointer);
};