Mercurial > pidgin
changeset 7269:4fc46299e5fb
[gaim-migrate @ 7846]
fix registration (again)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 15 Oct 2003 05:04:26 +0000 |
parents | e588fea95786 |
children | b5f0aae8b5c4 |
files | src/gtkaccount.c |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkaccount.c Wed Oct 15 04:55:44 2003 +0000 +++ b/src/gtkaccount.c Wed Oct 15 05:04:26 2003 +0000 @@ -952,7 +952,7 @@ account_win_destroy_cb(NULL, NULL, dialog); } -static void +static GaimAccount* ok_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) { GaimProxyInfo *proxy_info = NULL; @@ -962,6 +962,7 @@ char *tmp; size_t index; GtkTreeIter iter; + GaimAccount *ret; if (dialog->account == NULL) { const char *screenname; @@ -1161,17 +1162,21 @@ gtk_widget_destroy(dialog->window); + ret = dialog->account; + account_win_destroy_cb(NULL, NULL, dialog); gaim_accounts_sync(); + + return ret; } static void register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) { - ok_account_prefs_cb(NULL, dialog); + GaimAccount *account = ok_account_prefs_cb(NULL, dialog); - gaim_account_register(dialog->account); + gaim_account_register(account); } void