summaryrefslogtreecommitdiff
path: root/panels/sound
diff options
context:
space:
mode:
authorMarco Melorio <marco.melorio@protonmail.com>2023-01-28 15:19:36 +0100
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2023-01-30 10:49:09 +0000
commit29514add66b9a0570b2bf7b9caf7ab0d2fc03de9 (patch)
tree1cc879dce0e37121fa36b4b35d4d65e3cd7f8e7f /panels/sound
parentec9a0052ba634f4b834b2eb48cb465352ab26a1d (diff)
downloadgnome-control-center-29514add66b9a0570b2bf7b9caf7ab0d2fc03de9.tar.gz
sound: Remove the nested GtkListBox
See the previous commit for more info. The UI file is not formatted on purpose to facilitate the review. It will be reformatted in the next commit.
Diffstat (limited to 'panels/sound')
-rw-r--r--panels/sound/cc-sound-panel.c8
-rw-r--r--panels/sound/cc-sound-panel.ui32
2 files changed, 12 insertions, 28 deletions
diff --git a/panels/sound/cc-sound-panel.c b/panels/sound/cc-sound-panel.c
index 2bdc8e6b5..219e6c225 100644
--- a/panels/sound/cc-sound-panel.c
+++ b/panels/sound/cc-sound-panel.c
@@ -49,19 +49,19 @@ struct _CcSoundPanel
AdwPreferencesGroup *output_group;
CcLevelBar *output_level_bar;
CcDeviceComboBox *output_device_combo_box;
- GtkListBoxRow *output_profile_row;
+ AdwPreferencesRow *output_profile_row;
CcProfileComboBox *output_profile_combo_box;
CcVolumeSlider *output_volume_slider;
CcBalanceSlider *balance_slider;
- GtkListBoxRow *fade_row;
+ AdwPreferencesRow *fade_row;
CcFadeSlider *fade_slider;
- GtkListBoxRow *subwoofer_row;
+ AdwPreferencesRow *subwoofer_row;
CcSubwooferSlider *subwoofer_slider;
AdwPreferencesGroup *output_no_devices_group;
AdwPreferencesGroup *input_group;
CcLevelBar *input_level_bar;
CcDeviceComboBox *input_device_combo_box;
- GtkListBoxRow *input_profile_row;
+ AdwPreferencesRow *input_profile_row;
CcProfileComboBox *input_profile_combo_box;
CcVolumeSlider *input_volume_slider;
AdwPreferencesGroup *input_no_devices_group;
diff --git a/panels/sound/cc-sound-panel.ui b/panels/sound/cc-sound-panel.ui
index 6c97b63f4..49693346c 100644
--- a/panels/sound/cc-sound-panel.ui
+++ b/panels/sound/cc-sound-panel.ui
@@ -18,14 +18,8 @@
</child>
</object>
</property>
- <child>
- <object class="GtkListBox">
- <property name="selection_mode">none</property>
- <style>
- <class name="boxed-list"/>
- </style>
<child>
- <object class="GtkListBoxRow">
+ <object class="AdwPreferencesRow">
<property name="activatable">False</property>
<child>
<object class="GtkBox">
@@ -66,7 +60,7 @@
</object>
</child>
<child>
- <object class="GtkListBoxRow" id="output_profile_row">
+ <object class="AdwPreferencesRow" id="output_profile_row">
<property name="activatable">False</property>
<child>
<object class="GtkBox">
@@ -129,7 +123,7 @@
</object>
</child>
<child>
- <object class="GtkListBoxRow">
+ <object class="AdwPreferencesRow">
<property name="activatable">False</property>
<child>
<object class="GtkBox">
@@ -155,7 +149,7 @@
</object>
</child>
<child>
- <object class="GtkListBoxRow" id="fade_row">
+ <object class="AdwPreferencesRow" id="fade_row">
<property name="activatable">False</property>
<child>
<object class="GtkBox">
@@ -181,7 +175,7 @@
</object>
</child>
<child>
- <object class="GtkListBoxRow" id="subwoofer_row">
+ <object class="AdwPreferencesRow" id="subwoofer_row">
<property name="activatable">False</property>
<child>
<object class="GtkBox">
@@ -205,8 +199,6 @@
</object>
</child>
</object>
- </child>
- </object>
</child>
</object>
</child>
@@ -238,14 +230,8 @@
<property name="width-request">40</property>
</object>
</property>
- <child>
- <object class="GtkListBox">
- <property name="selection_mode">none</property>
- <style>
- <class name="boxed-list"/>
- </style>
<child>
- <object class="GtkListBoxRow">
+ <object class="AdwPreferencesRow">
<property name="activatable">False</property>
<child>
<object class="GtkBox">
@@ -282,7 +268,7 @@
</object>
</child>
<child>
- <object class="GtkListBoxRow" id="input_profile_row">
+ <object class="AdwPreferencesRow" id="input_profile_row">
<property name="activatable">False</property>
<child>
<object class="GtkBox">
@@ -316,7 +302,7 @@
</object>
</child>
<child>
- <object class="GtkListBoxRow">
+ <object class="AdwPreferencesRow">
<property name="activatable">False</property>
<child>
<object class="GtkBox">
@@ -340,8 +326,6 @@
</object>
</child>
</object>
- </child>
- </object>
</child>
</object>
</child>