network: Simplify helper

This commit is contained in:
Robert Ancell 2019-11-08 16:23:59 +13:00 committed by Georges Basile Stavracas Neto
parent 08b26a93a7
commit 1c2d2ca79b
4 changed files with 4 additions and 6 deletions

View file

@ -377,7 +377,6 @@ ws_802_1x_auth_combo_get_eap (GtkComboBox *combo)
void void
ws_802_1x_auth_combo_changed (GtkComboBox *combo, ws_802_1x_auth_combo_changed (GtkComboBox *combo,
WirelessSecurity *self,
GtkBox *vbox, GtkBox *vbox,
GtkSizeGroup *size_group) GtkSizeGroup *size_group)
{ {
@ -408,8 +407,6 @@ ws_802_1x_auth_combo_changed (GtkComboBox *combo,
if (eap_default_widget) if (eap_default_widget)
gtk_widget_grab_focus (eap_default_widget); gtk_widget_grab_focus (eap_default_widget);
} }
wireless_security_notify_changed (WIRELESS_SECURITY (self));
} }
void void

View file

@ -116,7 +116,6 @@ void ws_802_1x_auth_combo_init (WirelessSecurity *sec,
gboolean secrets_only); gboolean secrets_only);
void ws_802_1x_auth_combo_changed (GtkComboBox *combo, void ws_802_1x_auth_combo_changed (GtkComboBox *combo,
WirelessSecurity *sec,
GtkBox *vbox, GtkBox *vbox,
GtkSizeGroup *size_group); GtkSizeGroup *size_group);

View file

@ -92,9 +92,10 @@ static void
auth_combo_changed_cb (WirelessSecurityDynamicWEP *self) auth_combo_changed_cb (WirelessSecurityDynamicWEP *self)
{ {
ws_802_1x_auth_combo_changed (self->auth_combo, ws_802_1x_auth_combo_changed (self->auth_combo,
WIRELESS_SECURITY (self),
self->method_box, self->method_box,
self->size_group); self->size_group);
wireless_security_notify_changed (WIRELESS_SECURITY (self));
} }
WirelessSecurityDynamicWEP * WirelessSecurityDynamicWEP *

View file

@ -93,9 +93,10 @@ static void
auth_combo_changed_cb (WirelessSecurityWPAEAP *self) auth_combo_changed_cb (WirelessSecurityWPAEAP *self)
{ {
ws_802_1x_auth_combo_changed (self->auth_combo, ws_802_1x_auth_combo_changed (self->auth_combo,
WIRELESS_SECURITY (self),
self->method_box, self->method_box,
self->size_group); self->size_group);
wireless_security_notify_changed (WIRELESS_SECURITY (self));
} }
WirelessSecurityWPAEAP * WirelessSecurityWPAEAP *