diff options
author | Ted Gould <ted@gould.cx> | 2010-03-02 16:43:21 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-02 16:43:21 -0600 |
commit | a6d04fe9a6dbd6c4b9b119686523962bf9147a8b (patch) | |
tree | 966e801af00e54aeae1e0ff6b80cf3a5fe63c67e /src/users-service-dbus.c | |
parent | 4dca3325214a9060d9a56748c8e8aea590d3ce52 (diff) | |
parent | bb12842de3558842bacbc9bafcff40490a8bc409 (diff) | |
download | ayatana-indicator-session-a6d04fe9a6dbd6c4b9b119686523962bf9147a8b.tar.gz ayatana-indicator-session-a6d04fe9a6dbd6c4b9b119686523962bf9147a8b.tar.bz2 ayatana-indicator-session-a6d04fe9a6dbd6c4b9b119686523962bf9147a8b.zip |
Removing errors on getting sessions from CK and some other cleanups.
Diffstat (limited to 'src/users-service-dbus.c')
-rw-r--r-- | src/users-service-dbus.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c index 0e5c922..2b984cd 100644 --- a/src/users-service-dbus.c +++ b/src/users-service-dbus.c @@ -34,6 +34,7 @@ #include "users-service-dbus.h" #include "users-service-client.h" #include "users-service-marshal.h" +#include "consolekit-manager-client.h" static void users_service_dbus_class_init (UsersServiceDbusClass *klass); static void users_service_dbus_init (UsersServiceDbus *self); @@ -509,14 +510,7 @@ add_sessions_for_user (UsersServiceDbus *self, int i; error = NULL; - if (!dbus_g_proxy_call (priv->ck_proxy, - "GetSessionsForUnixUser", - &error, - G_TYPE_UINT, user->uid, - G_TYPE_INVALID, - dbus_g_type_get_collection ("GPtrArray", DBUS_TYPE_G_OBJECT_PATH), - &sessions, - G_TYPE_INVALID)) + if (!org_freedesktop_ConsoleKit_Manager_get_sessions_for_unix_user(priv->ck_proxy, user->uid, &sessions, &error)) { g_debug ("Failed to call GetSessionsForUnixUser: %s", error->message); g_error_free (error); |