changeset 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
files src/gtkaccount.c
diffstat 1 files changed, 15 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 */