aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-10 13:52:12 -0500
committerTed Gould <ted@canonical.com>2009-09-10 13:52:12 -0500
commitd97e28df45374c687c60529b5e868e2910187571 (patch)
tree662c9d3be874a4a7b2162c174165592fde875245
parentacdeaff5212ea63681d0f2b6d623d0780b6350ef (diff)
downloadayatana-indicator-session-d97e28df45374c687c60529b5e868e2910187571.tar.gz
ayatana-indicator-session-d97e28df45374c687c60529b5e868e2910187571.tar.bz2
ayatana-indicator-session-d97e28df45374c687c60529b5e868e2910187571.zip
Function to build the telepathy proxy.
-rw-r--r--src/status-provider-telepathy.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/status-provider-telepathy.c b/src/status-provider-telepathy.c
index 31da224..4430a8e 100644
--- a/src/status-provider-telepathy.c
+++ b/src/status-provider-telepathy.c
@@ -75,6 +75,7 @@ static void status_provider_telepathy_init (StatusProviderTelepathy *self)
static void status_provider_telepathy_dispose (GObject *object);
static void status_provider_telepathy_finalize (GObject *object);
/* Internal Funcs */
+static void build_telepathy_proxy (StatusProviderTelepathy * self);
static void set_status (StatusProvider * sp, StatusProviderStatus status);
static StatusProviderStatus get_status (StatusProvider * sp);
static void changed_status (DBusGProxy * proxy, guint status, gchar * message, StatusProvider * sp);
@@ -110,6 +111,16 @@ status_provider_telepathy_init (StatusProviderTelepathy *self)
priv->proxy = NULL;
priv->mc_status = MC_STATUS_OFFLINE;
+ build_telepathy_proxy(self);
+
+ return;
+}
+
+static void
+build_telepathy_proxy (StatusProviderTelepathy * self)
+{
+ StatusProviderTelepathyPrivate * priv = STATUS_PROVIDER_TELEPATHY_GET_PRIVATE(self);
+
GError * error = NULL;
DBusGConnection * session_bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error);