aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-09-23 23:18:51 -0500
committerCody Russell <crussell@canonical.com>2009-09-23 23:18:51 -0500
commitf8e0ff04840fe4842c5c3ebeef396b530d6f1995 (patch)
tree79b8a903e85e88963089fdec64896b31545cc04b /src
parentc608393d5e0650f348fc39769531cb0a1e7c95a0 (diff)
downloadayatana-indicator-session-f8e0ff04840fe4842c5c3ebeef396b530d6f1995.tar.gz
ayatana-indicator-session-f8e0ff04840fe4842c5c3ebeef396b530d6f1995.tar.bz2
ayatana-indicator-session-f8e0ff04840fe4842c5c3ebeef396b530d6f1995.zip
remove system proxy
Diffstat (limited to 'src')
-rw-r--r--src/users-service-dbus.c35
1 files changed, 4 insertions, 31 deletions
diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c
index 5a9b874..499182b 100644
--- a/src/users-service-dbus.c
+++ b/src/users-service-dbus.c
@@ -34,11 +34,10 @@
#include "users-service-client.h"
#include "users-service-marshal.h"
-static void users_service_dbus_class_init (UsersServiceDbusClass *klass);
-static void users_service_dbus_init (UsersServiceDbus *self);
-static void users_service_dbus_dispose (GObject *object);
-static void users_service_dbus_finalize (GObject *object);
-static void create_system_proxy (UsersServiceDbus *self);
+static void users_service_dbus_class_init (UsersServiceDbusClass *klass);
+static void users_service_dbus_init (UsersServiceDbus *self);
+static void users_service_dbus_dispose (GObject *object);
+static void users_service_dbus_finalize (GObject *object);
static void create_gdm_proxy (UsersServiceDbus *self);
static void create_seat_proxy (UsersServiceDbus *self);
static void create_ck_proxy (UsersServiceDbus *self);
@@ -78,7 +77,6 @@ struct _UsersServiceDbusPrivate
DBusGConnection *system_bus;
- DBusGProxy *dbus_proxy_system;
DBusGProxy *gdm_proxy;
DBusGProxy *ck_proxy;
DBusGProxy *seat_proxy;
@@ -181,7 +179,6 @@ users_service_dbus_init (UsersServiceDbus *self)
G_TYPE_INT64,
G_TYPE_INVALID);
- create_system_proxy (self);
create_gdm_proxy (self);
create_ck_proxy (self);
create_seat_proxy (self);
@@ -202,30 +199,6 @@ users_service_dbus_finalize (GObject *object)
}
static void
-create_system_proxy (UsersServiceDbus *self)
-{
- UsersServiceDbusPrivate *priv = USERS_SERVICE_DBUS_GET_PRIVATE (self);
- GError *error = NULL;
-
- priv->dbus_proxy_system = dbus_g_proxy_new_for_name_owner (priv->system_bus,
- DBUS_SERVICE_DBUS,
- DBUS_PATH_DBUS,
- DBUS_INTERFACE_DBUS,
- &error);
-
- if (!priv->dbus_proxy_system)
- {
- if (error != NULL)
- {
- g_error ("Unable to get dbus proxy on system bus: %s", error->message);
- g_error_free (error);
-
- return;
- }
- }
-}
-
-static void
create_gdm_proxy (UsersServiceDbus *self)
{
UsersServiceDbusPrivate *priv = USERS_SERVICE_DBUS_GET_PRIVATE (self);