diff options
author | Ted Gould <ted@canonical.com> | 2009-07-26 23:44:19 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-07-26 23:44:19 -0500 |
commit | 0417e7049a32ceb45e19705992dfccef5d858893 (patch) | |
tree | 3248af69a8fb6f5791ff48aa1cd30d24146ec556 /src | |
parent | a2e7239aa75ffd691adc72372af67808253f5bdc (diff) | |
download | ayatana-indicator-session-0417e7049a32ceb45e19705992dfccef5d858893.tar.gz ayatana-indicator-session-0417e7049a32ceb45e19705992dfccef5d858893.tar.bz2 ayatana-indicator-session-0417e7049a32ceb45e19705992dfccef5d858893.zip |
Setting up the Pidgin proxy
Diffstat (limited to 'src')
-rw-r--r-- | src/status-provider-pidgin.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/status-provider-pidgin.c b/src/status-provider-pidgin.c index ebb701b..529f457 100644 --- a/src/status-provider-pidgin.c +++ b/src/status-provider-pidgin.c @@ -86,6 +86,21 @@ status_provider_pidgin_init (StatusProviderPidgin *self) priv->proxy = NULL; priv->pg_status = PG_STATUS_OFFLINE; + DBusGConnection * bus = dbus_g_bus_get(DBUS_BUS_SESSION, NULL); + g_return_if_fail(bus != NULL); /* Can't do anymore DBus stuff without this, + all non-DBus stuff should be done */ + + GError * error = NULL; + priv->proxy = dbus_g_proxy_new_for_name_owner (bus, + "im.pidgin.purple.PurpleService", + "/im/pidgin/purple/PurpleObject", + "im.pidgin.purple.PurpleInterface", + &error); + if (error != NULL) { + g_debug("Unable to get Pidgin proxy: %s", error->message); + g_error_free(error); + } + return; } |