[gnome-control-center] Hide airplane mode completely



commit 826646f7fc1c9895bda08ace09d9c93b9f67401d
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 23 14:57:55 2013 -0400

    Hide airplane mode completely
    
    Recently, code was added to hide the airplane mode switch
    when the funcitonality is not present. However, the 'Airplane mode'
    label was left behind. We already have a container that holds
    the entire header content of the network panel, just hide that
    instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706687

 panels/network/cc-network-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index c3e8ea3..d734810 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -297,7 +297,7 @@ sync_airplane_mode_switch (CcNetworkPanel *panel)
         result = g_dbus_proxy_get_cached_property (panel->priv->rfkill_proxy, "HasAirplaneMode");
         enabled = g_variant_get_boolean (result);
 
-        gtk_widget_set_visible (GTK_WIDGET (panel->priv->rfkill_switch), enabled);
+        gtk_widget_set_visible (GTK_WIDGET (panel->priv->kill_switch_header), enabled);
         if (!enabled)
                 return;
 


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