pidgin/pidgin

Fill PidginAccountChooser on init.

14 months ago, Elliott Sales de Andrade
a133a6fcc822
Parents 0d975f80d020
Children 19acef70137d
Fill PidginAccountChooser on init.

Otherwise, it will be empty if created via Glade, which won't call
pidgin_account_chooser_new.
--- a/pidgin/pidginaccountchooser.c Sun Dec 22 18:42:12 2019 -0500
+++ b/pidgin/pidginaccountchooser.c Sun Dec 22 18:54:41 2019 -0500
@@ -289,8 +289,10 @@
{
gtk_widget_init_template(GTK_WIDGET(chooser));
- g_signal_connect(chooser, "changed", pidgin_account_chooser_changed_cb,
- NULL);
+ set_account_menu(chooser, NULL);
+
+ g_signal_connect(chooser, "changed",
+ G_CALLBACK(pidgin_account_chooser_changed_cb), NULL);
/* Register the purple sign on/off event callbacks. */
purple_signal_connect(
@@ -317,7 +319,6 @@
chooser = g_object_new(PIDGIN_TYPE_ACCOUNT_CHOOSER, "account",
default_account, "show-all", show_all, NULL);
- set_account_menu(PIDGIN_ACCOUNT_CHOOSER(chooser), default_account);
return GTK_WIDGET(chooser);
}