summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2009-08-05 16:56:04 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2009-08-12 14:57:22 +0100
commitb1b2bebf688d407cd942c06a6c739d389d51ef35 (patch)
tree908840fcd345540c205d9812bde7f40b004ddcb3 /examples
parentb3a50f94445aaf504d45d04294aed7fbf2cbbbed (diff)
Make email a settable parameter in the connector instead of a mandatory param.
Diffstat (limited to 'examples')
-rw-r--r--examples/register.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/register.c b/examples/register.c
index d333079..9cd42df 100644
--- a/examples/register.c
+++ b/examples/register.c
@@ -19,7 +19,7 @@ connector_callback (GObject *source, GAsyncResult *res, gpointer user_data)
gchar *sid = NULL;
WockyConnector *wcon = WOCKY_CONNECTOR (source);
WockyXmppConnection *connection =
- wocky_connector_connect_finish (wcon, res, &error, &jid, &sid);
+ wocky_connector_register_finish (wcon, res, &error, &jid, &sid);
if (connection != NULL)
{
@@ -73,7 +73,8 @@ main (int argc,
"password" , pass,
"xmpp-server", host, NULL);
- wocky_connector_register_async (wcon, email, connector_callback, NULL);
+ g_object_set (G_OBJECT (wcon), "email", email, NULL);
+ wocky_connector_register_async (wcon, connector_callback, NULL);
g_main_loop_run (mainloop);
return 0;