Mercurial > pidgin.yaz
comparison libpurple/protocols/gg/gg.c @ 32815:cb486df263ef
Introduce purple_account_register_completed() to handle the invoking of any
registration callback.
author | andrew.victor@mxit.com |
---|---|
date | Sun, 06 Nov 2011 19:46:57 +0000 |
parents | f236f3fce0d8 |
children |
comparison
equal
deleted
inserted
replaced
32814:c94e2bfae121 | 32815:cb486df263ef |
---|---|
389 purple_account_set_password(account, p1); | 389 purple_account_set_password(account, p1); |
390 | 390 |
391 purple_notify_info(NULL, _("New Gadu-Gadu Account Registered"), | 391 purple_notify_info(NULL, _("New Gadu-Gadu Account Registered"), |
392 _("Registration completed successfully!"), NULL); | 392 _("Registration completed successfully!"), NULL); |
393 | 393 |
394 if(account->registration_cb) | 394 purple_account_register_completed(account, TRUE); |
395 (account->registration_cb)(account, TRUE, account->registration_cb_user_data); | 395 |
396 /* TODO: the currently open Accounts Window will not be updated withthe | 396 /* TODO: the currently open Accounts Window will not be updated withthe |
397 * new username and etc, we need to somehow have it refresh at this | 397 * new username and etc, we need to somehow have it refresh at this |
398 * point | 398 * point |
399 */ | 399 */ |
400 | 400 |
401 /* Need to disconnect or actually log in. For now, we disconnect. */ | 401 /* Need to disconnect or actually log in. For now, we disconnect. */ |
402 purple_account_disconnect(account); | 402 purple_account_disconnect(account); |
403 | 403 |
404 exit_err: | 404 exit_err: |
405 if(account->registration_cb) | 405 purple_account_register_completed(account, FALSE); |
406 (account->registration_cb)(account, FALSE, account->registration_cb_user_data); | |
407 | 406 |
408 gg_register_free(h); | 407 gg_register_free(h); |
409 g_free(email); | 408 g_free(email); |
410 g_free(p1); | 409 g_free(p1); |
411 g_free(p2); | 410 g_free(p2); |