src/gtkaccount.c

changeset 5851
44f203e1a418
parent 5850
9537237a7a87
child 5852
33a438531278
--- 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 */

mercurial