# HG changeset patch # User Christian Hammond # Date 1055495801 0 # Node ID 540bd1680b93ac6a99535ca67cf46e7b9175239f # Parent 97d1ad7a50ccb8cb5402b5a51bf92dafc6b620c3 [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 diff -r 97d1ad7a50cc -r 540bd1680b93 src/gtkaccount.c --- a/src/gtkaccount.c Fri Jun 13 09:11:24 2003 +0000 +++ b/src/gtkaccount.c Fri Jun 13 09:16:41 2003 +0000 @@ -681,16 +681,6 @@ break; } } - - /* Register user */ - if (dialog->prpl_info->register_user != NULL) { - dialog->register_check = - gtk_check_button_new_with_label(_("Register with your server")); - - gtk_box_pack_start(GTK_BOX(vbox), dialog->register_check, - FALSE, FALSE, 0); - gtk_widget_show(dialog->register_check); - } } static GtkWidget * @@ -1179,6 +1169,17 @@ gtk_box_pack_end(GTK_BOX(main_vbox), bbox, FALSE, TRUE, 0); gtk_widget_show(bbox); + if (dialog->prpl_info->register_user != NULL) { + /* Register button */ + button = gtk_button_new_with_label("Register"); + gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); + gtk_widget_show(button); + + g_signal_connect_swapped(G_OBJECT(button), "clicked", + G_CALLBACK(dialog->prpl_info->register_user), + dialog->account); + } + /* Cancel button */ button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); @@ -1187,8 +1188,8 @@ g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(cancel_account_prefs_cb), dialog); - /* OK button */ - button = gtk_button_new_from_stock(GTK_STOCK_OK); + /* Save button */ + button = gtk_button_new_from_stock(GTK_STOCK_SAVE); gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); if (dialog->account == NULL)