[Telepathy-commits] [telepathy-doc/master] list_contacts: Call Connect() with a non-blocking call rather than blocking _run.
Will Thompson
will.thompson at collabora.co.uk
Wed Oct 29 03:31:47 PDT 2008
---
docs/examples/list_contacts/main.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/docs/examples/list_contacts/main.c b/docs/examples/list_contacts/main.c
index 6909fa9..6b81d2b 100644
--- a/docs/examples/list_contacts/main.c
+++ b/docs/examples/list_contacts/main.c
@@ -137,22 +137,14 @@ main (int argc, char **argv)
if (error)
{
- g_printf ("tp_cli_connection_run_connect () failed: %s\n", error->message);
+ g_printf ("couldn't connect to StatusChanged: %s\n", error->message);
g_clear_error (&error);
+ return 1;
}
-
/* Connect the connection: */
- success = tp_cli_connection_run_connect (connection, -1, &error, NULL);
-
- if(!success)
- g_printf("tp_cli_connection_run_connect () failed.\n");
-
- if (error)
- {
- g_printf ("tp_cli_connection_run_connect () failed: %s\n", error->message);
- g_clear_error (&error);
- }
+ g_printf ("DEBUG: Calling Connect()\n");
+ tp_cli_connection_call_connect (connection, -1, NULL, NULL, NULL, NULL);
g_main_loop_run (mainloop);
--
1.5.6.5
More information about the Telepathy-commits
mailing list