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
This commit is contained in:
Matthias Clasen 2013-08-23 14:57:55 -04:00
parent 0f31090bae
commit 826646f7fc

View file

@ -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;