diff options
author | Ted Gould <ted@gould.cx> | 2010-03-01 21:34:08 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-01 21:34:08 -0600 |
commit | bb12842de3558842bacbc9bafcff40490a8bc409 (patch) | |
tree | 0d45f0bdd5753a2e26b596f459988351468fdd45 | |
parent | 1513ca78e4685f50051c37efcece4511347fc2f9 (diff) | |
download | ayatana-indicator-session-bb12842de3558842bacbc9bafcff40490a8bc409.tar.gz ayatana-indicator-session-bb12842de3558842bacbc9bafcff40490a8bc409.tar.bz2 ayatana-indicator-session-bb12842de3558842bacbc9bafcff40490a8bc409.zip |
Switching to using the dbus client code.
-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); |