diff options
author | Emad Saadat <professional@saadat.xyz> | 2023-03-28 22:05:09 -0700 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2023-05-15 10:50:09 +0000 |
commit | 813a5f838ca4e60a243df762a47da918fbe31818 (patch) | |
tree | 3f36b447c39960b3612e987b93eb72cbca354372 | |
parent | 216a7619b7822e62ca1be1d2d0e51c4b79fddf1c (diff) | |
download | gnome-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.ui | 21 |
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> |