[gnome-control-center] Add some missing a11y labels in the keyboard panel
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Add some missing a11y labels in the keyboard panel
- Date: Tue, 10 May 2022 04:05:24 +0000 (UTC)
commit 31d6c7704c4f21446160e5926017747c68e8a8d8
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date: Mon May 9 11:49:59 2022 +0200
Add some missing a11y labels in the keyboard panel
panels/keyboard/cc-input-chooser.ui | 3 +++
panels/keyboard/cc-input-row.ui | 3 +++
panels/keyboard/cc-keyboard-shortcut-dialog.ui | 12 ++++++++++++
panels/keyboard/cc-keyboard-shortcut-editor.ui | 8 ++++++++
panels/keyboard/cc-keyboard-shortcut-row.ui | 3 +++
panels/keyboard/cc-xkb-modifier-dialog.ui | 3 +++
6 files changed, 32 insertions(+)
---
diff --git a/panels/keyboard/cc-input-chooser.ui b/panels/keyboard/cc-input-chooser.ui
index 3bb8ddcae..74dd39a62 100644
--- a/panels/keyboard/cc-input-chooser.ui
+++ b/panels/keyboard/cc-input-chooser.ui
@@ -71,6 +71,9 @@
<property name="margin-end">6</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
+ <accessibility>
+ <property name="label" translatable="yes">Search</property>
+ </accessibility>
<signal name="search-changed" handler="on_filter_entry_search_changed_cb"
object="CcInputChooser" swapped="yes" />
</object>
</child>
diff --git a/panels/keyboard/cc-input-row.ui b/panels/keyboard/cc-input-row.ui
index e3a28d718..5ce33f493 100644
--- a/panels/keyboard/cc-input-row.ui
+++ b/panels/keyboard/cc-input-row.ui
@@ -16,6 +16,9 @@
<property name="valign">center</property>
<property name="icon_name">view-more-symbolic</property>
<property name="menu_model">popover_menu</property>
+ <accessibility>
+ <property name="label" translatable="yes">Options</property>
+ </accessibility>
<style>
<class name="flat"/>
</style>
diff --git a/panels/keyboard/cc-keyboard-shortcut-dialog.ui b/panels/keyboard/cc-keyboard-shortcut-dialog.ui
index 53400e97d..d1c806824 100644
--- a/panels/keyboard/cc-keyboard-shortcut-dialog.ui
+++ b/panels/keyboard/cc-keyboard-shortcut-dialog.ui
@@ -59,6 +59,9 @@
<property name="margin-top">12</property>
<property name="width_chars">30</property>
<property name="halign">center</property>
+ <accessibility>
+ <property name="label" translatable="yes">Search</property>
+ </accessibility>
<signal name="notify::text" handler="search_entry_cb" object="CcKeyboardShortcutDialog"
swapped="yes" />
</object>
</child>
@@ -82,6 +85,9 @@
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
+ <accessibility>
+ <property name="label" translatable="yes">Section</property>
+ </accessibility>
<signal name="row-activated" handler="section_row_activated"
object="CcKeyboardShortcutDialog" swapped="no" />
<style>
<class name="boxed-list" />
@@ -101,12 +107,18 @@
<child>
<object class="GtkListBox" id="shortcut_listbox">
<property name="selection-mode">none</property>
+ <accessibility>
+ <property name="label" translatable="yes">Shortcuts</property>
+ </accessibility>
<style>
<class name="boxed-list" />
</style>
<signal name="row-activated" handler="shortcut_row_activated"
object="CcKeyboardShortcutDialog" swapped="no" />
<child>
<object class="GtkListBoxRow" id="custom_shortcut_add_row">
+ <accessibility>
+ <property name="label" translatable="yes">Add a shortcut</property>
+ </accessibility>
<child>
<object class="GtkImage">
<property name="hexpand">True</property>
diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.ui b/panels/keyboard/cc-keyboard-shortcut-editor.ui
index 487922c72..f79460a83 100644
--- a/panels/keyboard/cc-keyboard-shortcut-editor.ui
+++ b/panels/keyboard/cc-keyboard-shortcut-editor.ui
@@ -122,6 +122,9 @@
<object class="GtkButton" id="reset_button">
<property name="icon-name">edit-clear-symbolic</property>
<property name="halign">end</property>
+ <accessibility>
+ <property name="label" translatable="yes">Reset</property>
+ </accessibility>
<signal name="clicked" handler="reset_item_clicked_cb"
object="CcKeyboardShortcutEditor" swapped="yes" />
<style>
<class name="flat" />
@@ -152,6 +155,7 @@
<object class="GtkLabel">
<property name="label" translatable="yes">Name</property>
<property name="xalign">1</property>
+ <property name="mnemonic_widget">name_entry</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
@@ -162,6 +166,7 @@
<object class="GtkLabel">
<property name="label" translatable="yes">Command</property>
<property name="xalign">1</property>
+ <property name="mnemonic_widget">command_entry</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
@@ -220,6 +225,9 @@
<property name="halign">end</property>
<property name="icon-name">edit-clear-symbolic</property>
<signal name="clicked" handler="reset_custom_clicked_cb"
object="CcKeyboardShortcutEditor" swapped="yes" />
+ <accessibility>
+ <property name="label" translatable="yes">Reset</property>
+ </accessibility>
<layout>
<property name="column">2</property>
<property name="row">2</property>
diff --git a/panels/keyboard/cc-keyboard-shortcut-row.ui b/panels/keyboard/cc-keyboard-shortcut-row.ui
index e78b48bc3..98a8a31d1 100644
--- a/panels/keyboard/cc-keyboard-shortcut-row.ui
+++ b/panels/keyboard/cc-keyboard-shortcut-row.ui
@@ -21,6 +21,9 @@
<property name="valign">center</property>
<property name="icon-name">edit-clear-symbolic</property>
<property name="tooltip-text" translatable="yes">Reset the shortcut to its default
value</property>
+ <accessibility>
+ <property name="label" translatable="yes">Reset</property>
+ </accessibility>
<signal name="clicked" handler="reset_shortcut_cb" swapped="true"/>
<style>
<class name="flat" />
diff --git a/panels/keyboard/cc-xkb-modifier-dialog.ui b/panels/keyboard/cc-xkb-modifier-dialog.ui
index 4e78216e5..dbe46639e 100644
--- a/panels/keyboard/cc-xkb-modifier-dialog.ui
+++ b/panels/keyboard/cc-xkb-modifier-dialog.ui
@@ -39,6 +39,9 @@
<child>
<object class="GtkSwitch" id="enabled_switch">
<property name="valign">center</property>
+ <accessibility>
+ <property name="label" translatable="yes">Rnabled</property>
+ </accessibility>
<signal name="state-set" handler="enable_switch_changed_cb"
object="CcXkbModifierDialog" swapped="no"/>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]