summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2009-06-09 17:26:28 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2009-07-14 17:54:27 +0100
commit858060449b818bb8f4223a28a4c9fdcd53f821e6 (patch)
tree2179217f9ef4e7ee01013608fcaead2da72cb7ec
parent8c98ef4cd5c1378c33004a6d48e987fc72fe14e2 (diff)
Use g_object_new now that wocky_connector_new is gone.
-rw-r--r--examples/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/connect.c b/examples/connect.c
index 724d673..80c276e 100644
--- a/examples/connect.c
+++ b/examples/connect.c
@@ -379,7 +379,9 @@ main (int argc,
{
WockyConnector *wcon = NULL;
- wcon = wocky_connector_new (argv[1], "password", argv[2]);
+ wcon = g_object_new (WOCKY_TYPE_CONNECTOR,
+ "jid", argv[1],
+ "password", argv[2]);
if (wocky_connector_connect_async (G_OBJECT (wcon),
connector_callback, NULL))