diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2010-12-20 10:55:43 -0200 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2010-12-20 10:55:43 -0200 |
commit | 11fa0acca7f5e6628963ff3c58356c6cc835a4f9 (patch) | |
tree | ae4ee626bb263e3f3ddfa468cb3b0a1aa6f6322a | |
parent | 7d1249e56a54d91e92255a159c14452fd5873832 (diff) |
conference-draft example cm: Do not use deprecated tp_get_bus.
-rw-r--r-- | tests/lib/glib/future/conference-draft/chan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/glib/future/conference-draft/chan.c b/tests/lib/glib/future/conference-draft/chan.c index 112d0c26..517dc610 100644 --- a/tests/lib/glib/future/conference-draft/chan.c +++ b/tests/lib/glib/future/conference-draft/chan.c @@ -121,15 +121,15 @@ constructed (GObject *object) TpTestsConferenceDRAFTChannel *self = TP_TESTS_CONFERENCE_DRAFT_CHANNEL (object); TpHandleRepoIface *contact_repo = tp_base_connection_get_handles (self->priv->conn, TP_HANDLE_TYPE_CONTACT); - DBusGConnection *bus; + TpDBusDaemon *bus; if (chain_up != NULL) { chain_up (object); } - bus = tp_get_bus (); - dbus_g_connection_register_g_object (bus, self->priv->object_path, object); + bus = tp_dbus_daemon_dup (NULL); + tp_dbus_daemon_register_object (bus, self->priv->object_path, object); tp_group_mixin_init (object, G_STRUCT_OFFSET (TpTestsConferenceDRAFTChannel, group), |