pidgin/plugins/gevolution/new_person_dialog.c

changeset 39787
af7ae86ee287
parent 39786
7800f52d0ae6
child 39793
2a29bc06910b
--- a/pidgin/plugins/gevolution/new_person_dialog.c	Fri Aug 09 01:51:47 2019 -0400
+++ b/pidgin/plugins/gevolution/new_person_dialog.c	Mon Aug 12 23:25:49 2019 -0400
@@ -209,10 +209,9 @@
 }
 
 static void
-select_account_cb(GObject *w, PurpleAccount *account,
-				  GevoNewPersonDialog *dialog)
+select_account_cb(GtkWidget *chooser, GevoNewPersonDialog *dialog)
 {
-	dialog->account = account;
+	dialog->account = pidgin_account_chooser_get_selected(chooser);
 }
 
 void
@@ -277,9 +276,10 @@
 	if (!person_only)
 	{
 		/* Add the account type stuff. */
-		dialog->accounts_menu = pidgin_account_chooser_new(
-		        account, FALSE, G_CALLBACK(select_account_cb), NULL,
-		        dialog);
+		dialog->accounts_menu =
+		        pidgin_account_chooser_new(account, FALSE, NULL);
+		g_signal_connect(dialog->accounts_menu, "changed",
+		                 G_CALLBACK(select_account_cb), dialog);
 		add_pref_box(sg, vbox, _("Account type:"), dialog->accounts_menu);
 
 		/* Username */

mercurial