pidgin/gtkblist.c

changeset 41862
0cb7833d756b
parent 41857
ff94f8ff8a70
child 41864
6f490dec468f
--- a/pidgin/gtkblist.c	Sat Oct 29 01:40:10 2022 -0500
+++ b/pidgin/gtkblist.c	Sat Oct 29 01:42:13 2022 -0500
@@ -1054,7 +1054,7 @@
 	g_object_unref(custom_filter);
 
 	pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("A_ccount"), data->sg, data->account_menu, TRUE, NULL);
-	g_signal_connect(data->account_menu, "changed",
+	g_signal_connect(data->account_menu, "notify::account",
 	                 G_CALLBACK(callback_func), data);
 
 	data->vbox = GTK_BOX(gtk_box_new(GTK_ORIENTATION_VERTICAL, 5));
@@ -1154,9 +1154,11 @@
 }
 
 static void
-chat_select_account_cb(GObject *w, PidginChatData *data)
+chat_select_account_cb(GObject *obj, G_GNUC_UNUSED GParamSpec *pspec,
+                       gpointer user_data)
 {
-	PidginAccountChooser *chooser = PIDGIN_ACCOUNT_CHOOSER(w);
+	PidginChatData *data = user_data;
+	PidginAccountChooser *chooser = PIDGIN_ACCOUNT_CHOOSER(obj);
 	PurpleAccount *account = pidgin_account_chooser_get_selected(chooser);
 
 	g_return_if_fail(data != NULL);

mercurial