network: Connect signals in swapped form

This commit is contained in:
Robert Ancell 2019-10-15 11:15:30 +13:00 committed by Georges Basile Stavracas Neto
parent d549c9e7bd
commit 54f8fce47f
26 changed files with 320 additions and 437 deletions

View file

@ -124,10 +124,8 @@ wsec_size_group_clear (GtkSizeGroup *group)
}
static void
security_combo_changed (GtkComboBox *combo,
gpointer user_data)
security_combo_changed (CEPageSecurity *page)
{
CEPageSecurity *page = CE_PAGE_SECURITY (user_data);
GtkWidget *vbox;
GList *l, *children;
g_autoptr(WirelessSecurity) sec = NULL;
@ -352,9 +350,9 @@ finish_setup (CEPageSecurity *page)
page->security_combo = combo;
security_combo_changed (combo, page);
g_signal_connect (combo, "changed",
G_CALLBACK (security_combo_changed), page);
security_combo_changed (page);
g_signal_connect_swapped (combo, "changed",
G_CALLBACK (security_combo_changed), page);
}
static gboolean