[gnome-control-center] Make the universal panel more accessible by adding some a11y described by relations and a few labels
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Make the universal panel more accessible by adding some a11y described by relations and a few labels
- Date: Sun, 19 Jun 2022 22:10:09 +0000 (UTC)
commit 840024b68544baf539bdbb5de1087935a564d020
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date: Mon Jun 13 16:42:06 2022 +0200
Make the universal panel more accessible by adding some a11y described by relations and a few labels
panels/universal-access/cc-cursor-blinking-dialog.ui | 3 +++
panels/universal-access/cc-pointing-dialog.ui | 10 ++++++++--
panels/universal-access/cc-repeat-keys-dialog.ui | 3 +++
panels/universal-access/cc-typing-dialog.ui | 20 ++++++++++++++++----
4 files changed, 30 insertions(+), 6 deletions(-)
---
diff --git a/panels/universal-access/cc-cursor-blinking-dialog.ui
b/panels/universal-access/cc-cursor-blinking-dialog.ui
index c4952a27c..e31e6120c 100644
--- a/panels/universal-access/cc-cursor-blinking-dialog.ui
+++ b/panels/universal-access/cc-cursor-blinking-dialog.ui
@@ -11,6 +11,9 @@
<child>
<object class="GtkSwitch" id="enable_switch">
<property name="valign">center</property>
+ <accessibility>
+ <property name="label" translatable="yes">Enable</property>
+ </accessibility>
</object>
</child>
</object>
diff --git a/panels/universal-access/cc-pointing-dialog.ui b/panels/universal-access/cc-pointing-dialog.ui
index 12152dce3..e35fade86 100644
--- a/panels/universal-access/cc-pointing-dialog.ui
+++ b/panels/universal-access/cc-pointing-dialog.ui
@@ -44,7 +44,7 @@
</object>
</child>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="secondary_click_description">
<property name="xalign">0</property>
<property name="label" translatable="yes">Trigger a secondary click by holding down
the primary button</property>
</object>
@@ -132,7 +132,7 @@
</object>
</child>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="hover_click_description">
<property name="xalign">0</property>
<property name="label" translatable="yes">Trigger a click when the pointer
hovers</property>
</object>
@@ -248,6 +248,9 @@
<property name="halign">end</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="described-by">secondary_click_description</relation>
+ </accessibility>
<layout>
<property name="column">1</property>
<property name="row">0</property>
@@ -259,6 +262,9 @@
<property name="halign">end</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="described-by">hover_click_description</relation>
+ </accessibility>
<layout>
<property name="column">1</property>
<property name="row">1</property>
diff --git a/panels/universal-access/cc-repeat-keys-dialog.ui
b/panels/universal-access/cc-repeat-keys-dialog.ui
index ced570337..78fa550f3 100644
--- a/panels/universal-access/cc-repeat-keys-dialog.ui
+++ b/panels/universal-access/cc-repeat-keys-dialog.ui
@@ -11,6 +11,9 @@
<child>
<object class="GtkSwitch" id="enable_switch">
<property name="valign">center</property>
+ <accessibility>
+ <property name="label" translatable="yes">Enable</property>
+ </accessibility>
</object>
</child>
</object>
diff --git a/panels/universal-access/cc-typing-dialog.ui b/panels/universal-access/cc-typing-dialog.ui
index 62dab893a..16510ebd6 100644
--- a/panels/universal-access/cc-typing-dialog.ui
+++ b/panels/universal-access/cc-typing-dialog.ui
@@ -46,7 +46,7 @@
</object>
</child>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="sticky_keys_description">
<property name="xalign">0</property>
<property name="label" translatable="yes">Treats a sequence of modifier keys as a
key combination</property>
</object>
@@ -101,7 +101,7 @@
</object>
</child>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="slow_keys_description">
<property name="xalign">0</property>
<property name="label" translatable="yes">Puts a delay between when a key is pressed
and when it is accepted</property>
</object>
@@ -208,7 +208,7 @@
</object>
</child>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="bounce_keys_description">
<property name="xalign">0</property>
<property name="label" translatable="yes">Ignores fast duplicate
keypresses</property>
</object>
@@ -284,6 +284,9 @@
<property name="halign">end</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="described-by">sticky_keys_description</relation>
+ </accessibility>
<layout>
<property name="column">1</property>
<property name="row">1</property>
@@ -295,6 +298,9 @@
<property name="halign">end</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
+ <accessibility>
+
+ </accessibility>
<layout>
<property name="column">1</property>
<property name="row">2</property>
@@ -306,6 +312,9 @@
<property name="halign">end</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="described-by">bounce_keys_description</relation>
+ </accessibility>
<layout>
<property name="column">1</property>
<property name="row">3</property>
@@ -331,7 +340,7 @@
</object>
</child>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="keyboard_toggle_description">
<property name="xalign">0</property>
<property name="label" translatable="yes">Turn accessibility features on and off using
the keyboard</property>
</object>
@@ -343,6 +352,9 @@
<property name="halign">end</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
+ <accessibility>
+ <relation name="described-by">keyboard_toggle_description</relation>
+ </accessibility>
<layout>
<property name="column">1</property>
<property name="row">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]