summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-06 12:18:36 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-06 15:48:28 +0100
commitde7e9b604dd50cb9fcadf3b226d049a9f3cf7ce3 (patch)
tree6ef8354096ce8f7f31fecd114113ad745b56c9fd
parenta44973d2298609dcef7d0cb482f230492524cc69 (diff)
downloadtelepathy-glib-de7e9b604dd50cb9fcadf3b226d049a9f3cf7ce3.tar.gz
extended-client: comment that we're going behind MC's back
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
-rw-r--r--examples/client/extended-client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/client/extended-client.c b/examples/client/extended-client.c
index 8572b6395..55e3086e2 100644
--- a/examples/client/extended-client.c
+++ b/examples/client/extended-client.c
@@ -212,7 +212,7 @@ cm_requested_connection (TpConnectionManager *manager,
if (die_if (error, "RequestConnection()"))
return;
- /* FIXME: there should be convenience API for this */
+ /* Because we don't have an AccountManager, we have to do more work here. */
factory = tp_simple_client_factory_new (NULL);
conn = tp_simple_client_factory_ensure_connection (factory, object_path, NULL,
&e);
@@ -257,6 +257,9 @@ connection_manager_got_info (TpConnectionManager *cm,
g_value_set_static_string (&value, "myself@server");
g_hash_table_insert (params, "account", &value);
+ /* This example is rather lower-level than most: it's
+ * "going behind the account manager's back". This is not recommended
+ * in real applications. */
tp_cli_connection_manager_call_request_connection (cm,
-1, "example", params, cm_requested_connection, NULL, NULL, NULL);