comparison src/gtkaccount.c @ 5852:daac2e9a1b0b

[gaim-migrate @ 6283] Compile before commit, compile before commit, compile before commit... committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 13 Jun 2003 09:42:07 +0000
parents 023fd44672d8
children 082982a4acbd
comparison
equal deleted inserted replaced
5851:023fd44672d8 5852:daac2e9a1b0b
30 #include "gtkaccount.h" 30 #include "gtkaccount.h"
31 #include "account.h" 31 #include "account.h"
32 #include "accountopt.h" 32 #include "accountopt.h"
33 #include "event.h" 33 #include "event.h"
34 #include "prefs.h" 34 #include "prefs.h"
35 #include "plugin.h"
35 #include "stock.h" 36 #include "stock.h"
36 #include "gtkblist.h" 37 #include "gtkblist.h"
37 #include "gaim-disclosure.h" 38 #include "gaim-disclosure.h"
38 #include "gaim.h" 39 #include "gaim.h"
39 40
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 }