From f594b8f3f48365815b338fe4fa83f1c5b49d61b9 Mon Sep 17 00:00:00 2001 From: Chandni Verma Date: Tue, 28 Aug 2012 18:43:02 +0530 Subject: [PATCH 1/2] Use TpAutomaticClientFactory to request a channel instead of TpSimpleClientFactory So a TpDBusTubeChannel is created for a TP_IFACE_CHANNEL_TYPE_DBUS_TUBE channel Partially fixes: https://bugs.freedesktop.org/show_bug.cgi?id=54061 --- examples/client/dbus-tubes/offerer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/client/dbus-tubes/offerer.c b/examples/client/dbus-tubes/offerer.c index baa61d0..fb7c151 100644 --- a/examples/client/dbus-tubes/offerer.c +++ b/examples/client/dbus-tubes/offerer.c @@ -179,7 +179,7 @@ int main (int argc, const char **argv) { - TpSimpleClientFactory *factory; + TpAutomaticClientFactory *factory; TpAccount *account; char *account_path; GError *error = NULL; @@ -191,11 +191,11 @@ main (int argc, if (argc != 3) g_error ("Usage: offerer gabble/jabber/ladygaga t-pain@example.com"); - factory = tp_simple_client_factory_new (NULL); + factory = tp_automatic_client_factory_new (NULL); account_path = g_strconcat (TP_ACCOUNT_OBJECT_PATH_BASE, argv[1], NULL); - account = tp_simple_client_factory_ensure_account (factory, account_path, - NULL, &error); + account = tp_simple_client_factory_ensure_account ( + TP_SIMPLE_CLIENT_FACTORY (factory), account_path, NULL, &error); g_assert_no_error (error); g_free (account_path); -- 1.7.9.5