From d97e28df45374c687c60529b5e868e2910187571 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 10 Sep 2009 13:52:12 -0500 Subject: Function to build the telepathy proxy. --- src/status-provider-telepathy.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- cgit v1.2.3