aboutsummaryrefslogtreecommitdiff
path: root/src/users-service-dbus.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-03 15:39:16 -0600
committerTed Gould <ted@gould.cx>2010-03-03 15:39:16 -0600
commitd694e0a23c44a6c48a6b23509dd8b00a3d622611 (patch)
tree31f4c1b9095b5fdab639bce415a1c0a2c2d7904d /src/users-service-dbus.c
parentb51d58db757ccec277216f3e4f3e74c67ea75884 (diff)
parentbb12842de3558842bacbc9bafcff40490a8bc409 (diff)
downloadayatana-indicator-session-d694e0a23c44a6c48a6b23509dd8b00a3d622611.tar.gz
ayatana-indicator-session-d694e0a23c44a6c48a6b23509dd8b00a3d622611.tar.bz2
ayatana-indicator-session-d694e0a23c44a6c48a6b23509dd8b00a3d622611.zip
Merging in the consolekit branch to get the interface file.
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 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);