Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c Sun Nov 06 13:34:58 2011 +0000 +++ b/libpurple/protocols/gg/gg.c Sun Nov 06 19:46:57 2011 +0000 @@ -391,8 +391,8 @@ purple_notify_info(NULL, _("New Gadu-Gadu Account Registered"), _("Registration completed successfully!"), NULL); - if(account->registration_cb) - (account->registration_cb)(account, TRUE, account->registration_cb_user_data); + purple_account_register_completed(account, TRUE); + /* TODO: the currently open Accounts Window will not be updated withthe * new username and etc, we need to somehow have it refresh at this * point @@ -402,8 +402,7 @@ purple_account_disconnect(account); exit_err: - if(account->registration_cb) - (account->registration_cb)(account, FALSE, account->registration_cb_user_data); + purple_account_register_completed(account, FALSE); gg_register_free(h); g_free(email);