Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 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 | e5a03ffc6c26 |
children | 685736e14aac |
comparison
equal
deleted
inserted
replaced
7268:e588fea95786 | 7269:4fc46299e5fb |
---|---|
950 gtk_widget_destroy(dialog->window); | 950 gtk_widget_destroy(dialog->window); |
951 | 951 |
952 account_win_destroy_cb(NULL, NULL, dialog); | 952 account_win_destroy_cb(NULL, NULL, dialog); |
953 } | 953 } |
954 | 954 |
955 static void | 955 static GaimAccount* |
956 ok_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) | 956 ok_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) |
957 { | 957 { |
958 GaimProxyInfo *proxy_info = NULL; | 958 GaimProxyInfo *proxy_info = NULL; |
959 GList *l, *l2; | 959 GList *l, *l2; |
960 const char *value; | 960 const char *value; |
961 char *username; | 961 char *username; |
962 char *tmp; | 962 char *tmp; |
963 size_t index; | 963 size_t index; |
964 GtkTreeIter iter; | 964 GtkTreeIter iter; |
965 GaimAccount *ret; | |
965 | 966 |
966 if (dialog->account == NULL) { | 967 if (dialog->account == NULL) { |
967 const char *screenname; | 968 const char *screenname; |
968 | 969 |
969 screenname = gtk_entry_get_text(GTK_ENTRY(dialog->screenname_entry)); | 970 screenname = gtk_entry_get_text(GTK_ENTRY(dialog->screenname_entry)); |
1159 } | 1160 } |
1160 } | 1161 } |
1161 | 1162 |
1162 gtk_widget_destroy(dialog->window); | 1163 gtk_widget_destroy(dialog->window); |
1163 | 1164 |
1165 ret = dialog->account; | |
1166 | |
1164 account_win_destroy_cb(NULL, NULL, dialog); | 1167 account_win_destroy_cb(NULL, NULL, dialog); |
1165 | 1168 |
1166 gaim_accounts_sync(); | 1169 gaim_accounts_sync(); |
1170 | |
1171 return ret; | |
1167 } | 1172 } |
1168 | 1173 |
1169 static void | 1174 static void |
1170 register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) | 1175 register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) |
1171 { | 1176 { |
1172 ok_account_prefs_cb(NULL, dialog); | 1177 GaimAccount *account = ok_account_prefs_cb(NULL, dialog); |
1173 | 1178 |
1174 gaim_account_register(dialog->account); | 1179 gaim_account_register(account); |
1175 } | 1180 } |
1176 | 1181 |
1177 void | 1182 void |
1178 gaim_gtk_account_dialog_show(GaimGtkAccountDialogType type, | 1183 gaim_gtk_account_dialog_show(GaimGtkAccountDialogType type, |
1179 GaimAccount *account) | 1184 GaimAccount *account) |