diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2014-03-28 23:47:44 -0400 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-04-01 14:27:46 +0100 |
commit | 8b7f8581031ceed7c872767d78ac1798bcf4a0e7 (patch) | |
tree | 5dca01da3973deb709afa5facbe89f4999cbe197 /tests | |
parent | d1a3f5bf60c774510e83d68d87b369d1e948f2da (diff) |
TpChannelDispatcher: Always create from a factory
Conflicts:
docs/reference/telepathy-glib/telepathy-glib-sections.txt
telepathy-glib/client-factory.h
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbus/base-client.c | 2 | ||||
-rw-r--r-- | tests/dbus/channel-dispatcher.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/dbus/base-client.c b/tests/dbus/base-client.c index f13da5a87..c0514761d 100644 --- a/tests/dbus/base-client.c +++ b/tests/dbus/base-client.c @@ -1268,7 +1268,7 @@ test_present_channel (Test *test, { TpChannelDispatcher *cd; - cd = tp_channel_dispatcher_new (test->dbus); + cd = tp_client_factory_dup_channel_dispatcher (test->factory); tp_channel_dispatcher_present_channel_async (cd, test->text_chan, TP_USER_ACTION_TIME_CURRENT_TIME, present_channel_cb, test); diff --git a/tests/dbus/channel-dispatcher.c b/tests/dbus/channel-dispatcher.c index d3b466e03..be8375ad4 100644 --- a/tests/dbus/channel-dispatcher.c +++ b/tests/dbus/channel-dispatcher.c @@ -58,8 +58,12 @@ static void test_new (Test *test, gconstpointer data G_GNUC_UNUSED) { - test->cd = tp_channel_dispatcher_new (test->dbus); + TpClientFactory *factory; + + factory = tp_client_factory_new (test->dbus); + test->cd = tp_client_factory_dup_channel_dispatcher (factory); g_assert (test->cd != NULL); + g_object_unref (factory); } int |