diff options
author | Francesco Giudici <fgiudici@redhat.com> | 2016-11-25 12:16:55 +0100 |
---|---|---|
committer | Francesco Giudici <fgiudici@redhat.com> | 2016-11-30 15:41:34 +0100 |
commit | b94ae0fcced78c4493ddf2326f18c127f7d80e1e (patch) | |
tree | 051187f690b75ca57324ba2be28fa6d607a190a9 | |
parent | 037b61b71ccc8126e2a65504deaf0207fb7e3de4 (diff) | |
download | network-manager-applet-b94ae0fcced78c4493ddf2326f18c127f7d80e1e.tar.gz |
c-e: fix WoL widgets sensitivity on startup
Fixes: db6813ef485bc78e13a4828b5310e47f1344b269
-rw-r--r-- | src/connection-editor/page-ethernet.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/connection-editor/page-ethernet.c b/src/connection-editor/page-ethernet.c index b0e100c1..af455854 100644 --- a/src/connection-editor/page-ethernet.c +++ b/src/connection-editor/page-ethernet.c @@ -283,8 +283,10 @@ finish_setup (CEPageEthernet *self, gpointer unused, GError *error, gpointer use g_signal_connect (priv->wol_default, "toggled", G_CALLBACK (wol_special_toggled_cb), self); g_signal_connect (priv->wol_ignore, "toggled", G_CALLBACK (wol_special_toggled_cb), self); - wol_special_toggled_cb (GTK_WIDGET (priv->wol_default), self); - wol_special_toggled_cb (GTK_WIDGET (priv->wol_ignore), self); + if (gtk_toggle_button_get_active (priv->wol_default)) + wol_special_toggled_cb (GTK_WIDGET (priv->wol_default), self); + else + wol_special_toggled_cb (GTK_WIDGET (priv->wol_ignore), self); g_signal_connect (priv->wol_phy, "toggled", G_CALLBACK (stuff_changed), self); g_signal_connect (priv->wol_unicast, "toggled", G_CALLBACK (stuff_changed), self); g_signal_connect (priv->wol_multicast, "toggled", G_CALLBACK (stuff_changed), self); |