summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmad Saadat <professional@saadat.xyz>2023-03-28 22:05:09 -0700
committerFelipe Borges <felipeborges@gnome.org>2023-05-15 10:50:09 +0000
commit813a5f838ca4e60a243df762a47da918fbe31818 (patch)
tree3f36b447c39960b3612e987b93eb72cbca354372
parent216a7619b7822e62ca1be1d2d0e51c4b79fddf1c (diff)
downloadgnome-control-center-813a5f838ca4e60a243df762a47da918fbe31818.tar.gz
wi-fi: Remove extraneous list box in Airplane Mode group
and give parent AdwPreferencesGroup the id of rfkill_widget to preserve previous behavior (hiding widget when no airplane mode available).
-rw-r--r--panels/network/cc-wifi-panel.ui21
1 files changed, 6 insertions, 15 deletions
diff --git a/panels/network/cc-wifi-panel.ui b/panels/network/cc-wifi-panel.ui
index b57924407..18b18dcde 100644
--- a/panels/network/cc-wifi-panel.ui
+++ b/panels/network/cc-wifi-panel.ui
@@ -50,22 +50,13 @@
<object class="AdwPreferencesPage">
<!-- Airplane Mode Toggle -->
<child>
- <object class="AdwPreferencesGroup">
+ <object class="AdwPreferencesGroup" id="rfkill_widget">
<child>
- <object class="GtkListBox" id="rfkill_widget">
- <property name="margin_bottom">32</property>
- <property name="selection-mode">none</property>
- <style>
- <class name="boxed-list"/>
- </style>
- <child>
- <object class="CcListRow" id="rfkill_row">
- <property name="show-switch">True</property>
- <property name="title" translatable="yes">Airplane Mode</property>
- <property name="subtitle" translatable="yes">Disables Wi-Fi, Bluetooth and mobile broadband</property>
- <signal name="notify::active" handler="rfkill_switch_notify_activate_cb" object="CcWifiPanel" swapped="no" />
- </object>
- </child>
+ <object class="CcListRow" id="rfkill_row">
+ <property name="show-switch">True</property>
+ <property name="title" translatable="yes">Airplane Mode</property>
+ <property name="subtitle" translatable="yes">Disables Wi-Fi, Bluetooth and mobile broadband</property>
+ <signal name="notify::active" handler="rfkill_switch_notify_activate_cb" object="CcWifiPanel" swapped="no" />
</object>
</child>
</object>