| 1063 else { |
1064 else { |
| 1064 add_account(dialog->accounts_dialog, dialog->account); |
1065 add_account(dialog->accounts_dialog, dialog->account); |
| 1065 gaim_accounts_add(dialog->account); |
1066 gaim_accounts_add(dialog->account); |
| 1066 } |
1067 } |
| 1067 |
1068 |
| 1068 /* See if we want to register with a server now. */ |
|
| 1069 if (dialog->prpl_info->register_user != NULL && |
|
| 1070 gtk_toggle_button_get_active( |
|
| 1071 GTK_TOGGLE_BUTTON(dialog->register_check))) { |
|
| 1072 |
|
| 1073 dialog->prpl_info->register_user(dialog->account); |
|
| 1074 } |
|
| 1075 |
|
| 1076 gtk_widget_destroy(dialog->window); |
1069 gtk_widget_destroy(dialog->window); |
| 1077 |
1070 |
| 1078 account_win_destroy_cb(NULL, NULL, dialog); |
1071 account_win_destroy_cb(NULL, NULL, dialog); |
| 1079 |
1072 |
| 1080 gaim_accounts_sync(); |
1073 gaim_accounts_sync(); |
| 1082 |
1075 |
| 1083 static void |
1076 static void |
| 1084 register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) |
1077 register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) |
| 1085 { |
1078 { |
| 1086 GaimAccount *account = dialog->account; |
1079 GaimAccount *account = dialog->account; |
| 1087 GaimProtocolPluginInfo *prpl_info = dialog->prpl_info; |
1080 GaimPluginProtocolInfo *prpl_info = dialog->prpl_info; |
| 1088 |
1081 |
| 1089 ok_account_prefs_cb(NULL, dialog); |
1082 ok_account_prefs_cb(NULL, dialog); |
| 1090 |
1083 |
| 1091 prpl_info->register_user(account); |
1084 prpl_info->register_user(account); |
| 1092 } |
1085 } |