[gnome-control-center] Add missing a11y labels
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Add missing a11y labels
- Date: Fri, 17 Jun 2022 02:07:10 +0000 (UTC)
commit 98fcce2202abd4a4108f02418db43fb20a347e59
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date: Mon Jun 6 14:05:05 2022 +0200
Add missing a11y labels
panels/sound/cc-balance-slider.ui | 3 +++
panels/sound/cc-fade-slider.ui | 3 +++
panels/sound/cc-sound-panel.ui | 15 +++++++++++++++
panels/sound/cc-subwoofer-slider.ui | 3 +++
panels/sound/cc-volume-slider.ui | 6 ++++++
5 files changed, 30 insertions(+)
---
diff --git a/panels/sound/cc-balance-slider.ui b/panels/sound/cc-balance-slider.ui
index 5e70da024..871a9150e 100644
--- a/panels/sound/cc-balance-slider.ui
+++ b/panels/sound/cc-balance-slider.ui
@@ -9,6 +9,9 @@
<property name="draw_value">False</property>
<property name="has_origin">False</property>
<property name="adjustment">adjustment</property>
+ <accessibility>
+ <property name="label" translatable="yes">Balance</property>
+ </accessibility>
<marks>
<mark value="-1" translatable="yes">Left</mark>
<mark value="0"/>
diff --git a/panels/sound/cc-fade-slider.ui b/panels/sound/cc-fade-slider.ui
index 1d01c31f3..97984fbdb 100644
--- a/panels/sound/cc-fade-slider.ui
+++ b/panels/sound/cc-fade-slider.ui
@@ -9,6 +9,9 @@
<property name="draw_value">False</property>
<property name="has_origin">False</property>
<property name="adjustment">adjustment</property>
+ <accessibility>
+ <property name="label" translatable="yes">Fade</property>
+ </accessibility>
<marks>
<mark value="-1" translatable="yes">Rear</mark>
<mark value="0"/>
diff --git a/panels/sound/cc-sound-panel.ui b/panels/sound/cc-sound-panel.ui
index dadf96a40..33b6dbb9e 100644
--- a/panels/sound/cc-sound-panel.ui
+++ b/panels/sound/cc-sound-panel.ui
@@ -8,6 +8,9 @@
<property name="title" translatable="yes">System Volume</property>
<child>
<object class="AdwPreferencesRow">
+ <accessibility>
+ <property name="label" translatable="yes">Master volume</property>
+ </accessibility>
<child>
<object class="CcVolumeSlider" id="output_volume_slider">
<property name="margin-top">12</property>
@@ -67,6 +70,9 @@
<child>
<object class="CcDeviceComboBox" id="output_device_combo_box">
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="labelled-by">output_device_label</relation>
+ </accessibility>
<signal name="changed" handler="output_device_changed_cb"
object="CcSoundPanel" swapped="yes"/>
</object>
</child>
@@ -110,6 +116,9 @@
<child>
<object class="CcProfileComboBox" id="output_profile_combo_box">
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="labelled-by">output_configuration_label</relation>
+ </accessibility>
</object>
</child>
</object>
@@ -234,6 +243,9 @@
<child>
<object class="CcDeviceComboBox" id="input_device_combo_box">
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="labelled-by">input_device_label</relation>
+ </accessibility>
<signal name="changed" handler="input_device_changed_cb"
object="CcSoundPanel" swapped="yes"/>
</object>
</child>
@@ -269,6 +281,9 @@
<child>
<object class="CcProfileComboBox" id="input_profile_combo_box">
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="labelled-by">input_configuration_label</relation>"
+ </accessibility>
</object>
</child>
</object>
diff --git a/panels/sound/cc-subwoofer-slider.ui b/panels/sound/cc-subwoofer-slider.ui
index 5a744fcfd..057da4baf 100644
--- a/panels/sound/cc-subwoofer-slider.ui
+++ b/panels/sound/cc-subwoofer-slider.ui
@@ -9,6 +9,9 @@
<property name="draw_value">False</property>
<property name="has_origin">False</property>
<property name="adjustment">adjustment</property>
+ <accessibility>
+ <property name="label" translatable="yes">Subwoofer</property>
+ </accessibility>
</object>
</child>
</template>
diff --git a/panels/sound/cc-volume-slider.ui b/panels/sound/cc-volume-slider.ui
index 2a07a1fa4..f6f0e8eae 100644
--- a/panels/sound/cc-volume-slider.ui
+++ b/panels/sound/cc-volume-slider.ui
@@ -9,11 +9,17 @@
<property name="adjustment">volume_adjustment</property>
<property name="draw_value">False</property>
<property name="hexpand">True</property>
+ <accessibility>
+ <property name="label" translatable="yes">Volume</property>
+ </accessibility>
</object>
</child>
<child>
<object class="GtkToggleButton" id="mute_button">
<property name="visible">True</property>
+ <accessibility>
+ <property name="label" translatable="yes">Mute</property>
+ </accessibility>
<signal name="toggled" handler="mute_button_toggled_cb" object="CcVolumeSlider" swapped="yes"/>
<style>
<class name="flat" />
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]