telepathy-glib: tube offerers: use an automatic client factory

Simon McVittie smcv at kemper.freedesktop.org
Fri Sep 6 08:09:12 PDT 2013


Module: telepathy-glib
Branch: master
Commit: c4ac0a8300be1e5770c49feb57f977feaad4a58d
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=c4ac0a8300be1e5770c49feb57f977feaad4a58d

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Fri Sep  6 13:14:07 2013 +0100

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
Reviewed-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>

---

 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 at 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,



More information about the telepathy-commits mailing list