Commit 4a3460f6 authored by Dan Williams's avatar Dan Williams Committed by Dan Williams
Browse files

src/connection-editor/page-wired-security.c -

2009-04-04  Dan Williams  <dcbw@redhat.com>

	* src/connection-editor/page-wired-security.c
		- (ce_page_wired_security_new): don't connect to the "use 802.1x"
			checkbox's 'toggled' signal here, do it after setting the
			checkbox's initial value in finish_setup().  Fixes issue
			where validation would be triggered prematurely, before the
			editor was initialized
		- (finish_setup): enable_toggled() already calls ce_page_changed()


svn path=/trunk/; revision=1247
parent 28e6d3e8
2009-04-04 Dan Williams <dcbw@redhat.com>
* src/connection-editor/page-wired-security.c
- (ce_page_wired_security_new): don't connect to the "use 802.1x"
checkbox's 'toggled' signal here, do it after setting the
checkbox's initial value in finish_setup(). Fixes issue
where validation would be triggered prematurely, before the
editor was initialized
- (finish_setup): enable_toggled() already calls ce_page_changed()
2009-04-04 Dan Williams <dcbw@redhat.com>
* src/connection-editor/nm-connection-list.c
......
......@@ -87,7 +87,7 @@ finish_setup (CEPageWiredSecurity *self, gpointer unused, GError *error, gpointe
priv->security_widget = wireless_security_get_widget (priv->security);
gtk_toggle_button_set_active (priv->enabled, priv->initial_have_8021x);
g_signal_connect_swapped (priv->enabled, "toggled", G_CALLBACK (ce_page_changed), self);
g_signal_connect (priv->enabled, "toggled", G_CALLBACK (enable_toggled), self);
gtk_widget_set_sensitive (priv->security_widget, priv->initial_have_8021x);
gtk_box_pack_start (GTK_BOX (parent->page), GTK_WIDGET (priv->enabled), FALSE, TRUE, 12);
......@@ -118,8 +118,6 @@ ce_page_wired_security_new (NMConnection *connection, GtkWindow *parent_window,
priv->initial_have_8021x = TRUE;
priv->enabled = GTK_TOGGLE_BUTTON (gtk_check_button_new_with_label (_("Use 802.1X security for this connection")));
g_signal_connect (priv->enabled, "toggled",
G_CALLBACK (enable_toggled), self);
g_signal_connect (self, "initialized", G_CALLBACK (finish_setup), NULL);
if (!ce_page_initialize (parent, NM_SETTING_802_1X_SETTING_NAME, error)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment