# HG changeset patch # User Nathan Walp # Date 1066194266 0 # Node ID 4fc46299e5fbfcc072c905fa3015eb7c753fa3ea # Parent e588fea957860c417599f256a5a4c4ed21cb00d2 [gaim-migrate @ 7846] fix registration (again) committer: Tailor Script diff -r e588fea95786 -r 4fc46299e5fb src/gtkaccount.c --- 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