diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-06 13:14:07 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-06 15:47:33 +0100 |
commit | c4ac0a8300be1e5770c49feb57f977feaad4a58d (patch) | |
tree | 231f67667c938e9ea9771f476d84ed180d788a08 /examples | |
parent | 6adc3a97491b8aef64ac00a5efa5685fc5f2c6b7 (diff) | |
download | telepathy-glib-c4ac0a8300be1e5770c49feb57f977feaad4a58d.tar.gz |
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@collabora.co.uk>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/client/dbus-tubes/offerer.c | 2 | ||||
-rw-r--r-- | 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 580655df6..9ff053fad 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 dee9322cc..85e14a7b6 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, |