Update of /cvsroot/gaim/gaim/src
In directory sc8-pr-cvs1:/tmp/cvs-serv12831/src
Modified Files:
gtkaccount.c
Log Message:
fix registration (again)
Index: gtkaccount.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/gtkaccount.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -p -r1.100 -r1.101
--- gtkaccount.c 9 Oct 2003 17:28:38 -0000 1.100
+++ gtkaccount.c 15 Oct 2003 05:04:26 -0000 1.101
@@ -952,7 +952,7 @@ cancel_account_prefs_cb(GtkWidget *w, Ac
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 @@ ok_account_prefs_cb(GtkWidget *w, Accoun
char *tmp;
size_t index;
GtkTreeIter iter;
+ GaimAccount *ret;
if (dialog->account == NULL) {
const char *screenname;
@@ -1161,17 +1162,21 @@ ok_account_prefs_cb(GtkWidget *w, Accoun
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
|