# HG changeset patch # User Christian Hammond # Date 1055496541 0 # Node ID 023fd44672d88313aa59a33b0623d544029967b2 # Parent 540bd1680b93ac6a99535ca67cf46e7b9175239f [gaim-migrate @ 6282] Now we won't be registering empty accounts! Yay for tuna! committer: Tailor Script diff -r 540bd1680b93 -r 023fd44672d8 src/gtkaccount.c --- a/src/gtkaccount.c Fri Jun 13 09:16:41 2003 +0000 +++ b/src/gtkaccount.c Fri Jun 13 09:29:01 2003 +0000 @@ -123,7 +123,6 @@ /* Protocol Options */ GtkWidget *protocol_frame; - GtkWidget *register_check; /* Proxy Options */ GtkWidget *proxy_frame; @@ -1082,9 +1081,20 @@ } static void +register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) +{ + GaimAccount *account = dialog->account; + GaimProtocolPluginInfo *prpl_info = dialog->prpl_info; + + ok_account_prefs_cb(NULL, dialog); + + prpl_info->register_user(account); +} + +static void show_account_prefs(AccountPrefsDialogType type, - AccountsDialog *accounts_dialog, - GaimAccount *account) + AccountsDialog *accounts_dialog, + GaimAccount *account) { AccountPrefsDialog *dialog; GtkWidget *win; @@ -1175,9 +1185,8 @@ 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); + g_signal_connect(G_OBJECT(button), "clicked", + G_CALLBACK(register_account_prefs_cb), dialog); } /* Cancel button */