[network-manager-applet/fg/c-e-ethernet-link2: 1/3] c-e: fix WoL widgets sensitivity on startup



commit 2f09faef917720be0636365f88afe4999ef37bd5
Author: Francesco Giudici <fgiudici redhat com>
Date:   Fri Nov 25 12:16:55 2016 +0100

    c-e: fix WoL widgets sensitivity on startup
    
    Fixes: db6813ef485bc78e13a4828b5310e47f1344b269

 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 b0e100c..af45585 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]