From cd8221e50799c1b9bf5ff13ef971eecf8a45ccc9 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 6 Sep 2013 13:14:07 +0100 Subject: [PATCH 01/19] tube offerers: use an automatic client factory The TpSimpleClientFactory base class doesn't use channel-type-specific subclasses, which these examples rely on. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 --- examples/client/dbus-tubes/offerer.c | 2 +- examples/client/stream-tubes/offerer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client/dbus-tubes/offerer.c b/examples/client/dbus-tubes/offerer.c index 580655d..9ff053f 100644 --- a/examples/client/dbus-tubes/offerer.c +++ b/examples/client/dbus-tubes/offerer.c @@ -193,7 +193,7 @@ 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_SIMPLE_CLIENT_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, diff --git a/examples/client/stream-tubes/offerer.c b/examples/client/stream-tubes/offerer.c index dee9322..85e14a7 100644 --- a/examples/client/stream-tubes/offerer.c +++ b/examples/client/stream-tubes/offerer.c @@ -144,7 +144,7 @@ main (int argc, g_type_init (); - factory = tp_simple_client_factory_new (NULL); + factory = TP_SIMPLE_CLIENT_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, -- 1.8.4.rc3