comparison src/gtkaccount.c @ 5850:540bd1680b93

[gaim-migrate @ 6281] Changed the OK button to a Save button, and moved the Register checkbox to a button in the account modification dialog. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 13 Jun 2003 09:16:41 +0000
parents dbed8c87f750
children 023fd44672d8
comparison
equal deleted inserted replaced
5849:97d1ad7a50cc 5850:540bd1680b93
679 679
680 default: 680 default:
681 break; 681 break;
682 } 682 }
683 } 683 }
684
685 /* Register user */
686 if (dialog->prpl_info->register_user != NULL) {
687 dialog->register_check =
688 gtk_check_button_new_with_label(_("Register with your server"));
689
690 gtk_box_pack_start(GTK_BOX(vbox), dialog->register_check,
691 FALSE, FALSE, 0);
692 gtk_widget_show(dialog->register_check);
693 }
694 } 684 }
695 685
696 static GtkWidget * 686 static GtkWidget *
697 make_proxy_dropdown(void) 687 make_proxy_dropdown(void)
698 { 688 {
1177 gtk_box_set_spacing(GTK_BOX(bbox), 6); 1167 gtk_box_set_spacing(GTK_BOX(bbox), 6);
1178 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); 1168 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END);
1179 gtk_box_pack_end(GTK_BOX(main_vbox), bbox, FALSE, TRUE, 0); 1169 gtk_box_pack_end(GTK_BOX(main_vbox), bbox, FALSE, TRUE, 0);
1180 gtk_widget_show(bbox); 1170 gtk_widget_show(bbox);
1181 1171
1172 if (dialog->prpl_info->register_user != NULL) {
1173 /* Register button */
1174 button = gtk_button_new_with_label("Register");
1175 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);
1176 gtk_widget_show(button);
1177
1178 g_signal_connect_swapped(G_OBJECT(button), "clicked",
1179 G_CALLBACK(dialog->prpl_info->register_user),
1180 dialog->account);
1181 }
1182
1182 /* Cancel button */ 1183 /* Cancel button */
1183 button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); 1184 button = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
1184 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); 1185 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);
1185 gtk_widget_show(button); 1186 gtk_widget_show(button);
1186 1187
1187 g_signal_connect(G_OBJECT(button), "clicked", 1188 g_signal_connect(G_OBJECT(button), "clicked",
1188 G_CALLBACK(cancel_account_prefs_cb), dialog); 1189 G_CALLBACK(cancel_account_prefs_cb), dialog);
1189 1190
1190 /* OK button */ 1191 /* Save button */
1191 button = gtk_button_new_from_stock(GTK_STOCK_OK); 1192 button = gtk_button_new_from_stock(GTK_STOCK_SAVE);
1192 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); 1193 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);
1193 1194
1194 if (dialog->account == NULL) 1195 if (dialog->account == NULL)
1195 gtk_widget_set_sensitive(button, FALSE); 1196 gtk_widget_set_sensitive(button, FALSE);
1196 1197