src/gtkaccount.c

changeset 7269
6015081d8124
parent 7208
3e883d5c246b
child 7450
d12556040468
--- 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

mercurial