Mercurial > pidgin
comparison src/gtkaccount.c @ 5851:023fd44672d8
[gaim-migrate @ 6282]
Now we won't be registering empty accounts! Yay for tuna!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 13 Jun 2003 09:29:01 +0000 |
parents | 540bd1680b93 |
children | daac2e9a1b0b |
comparison
equal
deleted
inserted
replaced
5850:540bd1680b93 | 5851:023fd44672d8 |
---|---|
121 GtkWidget *buddy_icon_preview; | 121 GtkWidget *buddy_icon_preview; |
122 GtkWidget *buddy_icon_text; | 122 GtkWidget *buddy_icon_text; |
123 | 123 |
124 /* Protocol Options */ | 124 /* Protocol Options */ |
125 GtkWidget *protocol_frame; | 125 GtkWidget *protocol_frame; |
126 GtkWidget *register_check; | |
127 | 126 |
128 /* Proxy Options */ | 127 /* Proxy Options */ |
129 GtkWidget *proxy_frame; | 128 GtkWidget *proxy_frame; |
130 GtkWidget *proxy_vbox; | 129 GtkWidget *proxy_vbox; |
131 GtkWidget *proxy_dropdown; | 130 GtkWidget *proxy_dropdown; |
1080 | 1079 |
1081 gaim_accounts_sync(); | 1080 gaim_accounts_sync(); |
1082 } | 1081 } |
1083 | 1082 |
1084 static void | 1083 static void |
1084 register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) | |
1085 { | |
1086 GaimAccount *account = dialog->account; | |
1087 GaimProtocolPluginInfo *prpl_info = dialog->prpl_info; | |
1088 | |
1089 ok_account_prefs_cb(NULL, dialog); | |
1090 | |
1091 prpl_info->register_user(account); | |
1092 } | |
1093 | |
1094 static void | |
1085 show_account_prefs(AccountPrefsDialogType type, | 1095 show_account_prefs(AccountPrefsDialogType type, |
1086 AccountsDialog *accounts_dialog, | 1096 AccountsDialog *accounts_dialog, |
1087 GaimAccount *account) | 1097 GaimAccount *account) |
1088 { | 1098 { |
1089 AccountPrefsDialog *dialog; | 1099 AccountPrefsDialog *dialog; |
1090 GtkWidget *win; | 1100 GtkWidget *win; |
1091 GtkWidget *main_vbox; | 1101 GtkWidget *main_vbox; |
1092 GtkWidget *vbox; | 1102 GtkWidget *vbox; |
1173 /* Register button */ | 1183 /* Register button */ |
1174 button = gtk_button_new_with_label("Register"); | 1184 button = gtk_button_new_with_label("Register"); |
1175 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); | 1185 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); |
1176 gtk_widget_show(button); | 1186 gtk_widget_show(button); |
1177 | 1187 |
1178 g_signal_connect_swapped(G_OBJECT(button), "clicked", | 1188 g_signal_connect(G_OBJECT(button), "clicked", |
1179 G_CALLBACK(dialog->prpl_info->register_user), | 1189 G_CALLBACK(register_account_prefs_cb), dialog); |
1180 dialog->account); | |
1181 } | 1190 } |
1182 | 1191 |
1183 /* Cancel button */ | 1192 /* Cancel button */ |
1184 button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); | 1193 button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); |
1185 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); | 1194 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); |