diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-01 19:48:02 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-01 19:48:03 +0800 |
commit | 9d03a4333a55b07e137f3be5460e7550ec8bedb5 (patch) | |
tree | 5cf6923a84627ada9a1bae36c7975efcddabdf76 /libempathy/empathy-idle.c | |
parent | bc2eade547a04c1324b3cfc563353d9b06dff1aa (diff) | |
download | gsoc2013-empathy-9d03a4333a55b07e137f3be5460e7550ec8bedb5.tar gsoc2013-empathy-9d03a4333a55b07e137f3be5460e7550ec8bedb5.tar.gz gsoc2013-empathy-9d03a4333a55b07e137f3be5460e7550ec8bedb5.tar.bz2 gsoc2013-empathy-9d03a4333a55b07e137f3be5460e7550ec8bedb5.tar.lz gsoc2013-empathy-9d03a4333a55b07e137f3be5460e7550ec8bedb5.tar.xz gsoc2013-empathy-9d03a4333a55b07e137f3be5460e7550ec8bedb5.tar.zst gsoc2013-empathy-9d03a4333a55b07e137f3be5460e7550ec8bedb5.zip |
empathy-idle: stop using tp_dbus_daemon_dup
It has been deprecated.
Diffstat (limited to 'libempathy/empathy-idle.c')
-rw-r--r-- | libempathy/empathy-idle.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c index 3ee3f39a3..b672e1afe 100644 --- a/libempathy/empathy-idle.c +++ b/libempathy/empathy-idle.c @@ -518,6 +518,7 @@ empathy_idle_init (EmpathyIdle *idle) { EmpathyIdlePriv *priv = G_TYPE_INSTANCE_GET_PRIVATE (idle, EMPATHY_TYPE_IDLE, EmpathyIdlePriv); + TpDBusDaemon *dbus; idle->priv = priv; priv->is_idle = FALSE; @@ -531,7 +532,10 @@ empathy_idle_init (EmpathyIdle *idle) "most-available-presence-changed", G_CALLBACK (idle_presence_changed_cb), idle); - priv->gs_proxy = dbus_g_proxy_new_for_name (tp_get_bus (), + dbus = tp_dbus_daemon_dup (NULL); + + priv->gs_proxy = dbus_g_proxy_new_for_name ( + tp_proxy_get_dbus_connection (dbus), "org.gnome.SessionManager", "/org/gnome/SessionManager/Presence", "org.gnome.SessionManager.Presence"); @@ -545,6 +549,8 @@ empathy_idle_init (EmpathyIdle *idle) DEBUG ("Failed to get gs proxy"); } + g_object_unref (dbus); + priv->connectivity = empathy_connectivity_dup_singleton (); priv->state_change_signal_id = g_signal_connect (priv->connectivity, "state-change", G_CALLBACK (idle_state_change_cb), idle); |