[gnome-control-center/wip/privacy-a11y: 1/3] online-accounts: Set label relationship for listboxes
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/privacy-a11y: 1/3] online-accounts: Set label relationship for listboxes
- Date: Thu, 3 Jan 2019 20:02:05 +0000 (UTC)
commit 4ff34176af6b8aaf8f5b8daba45e1ab99502df19
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Thu Jan 3 13:04:06 2019 -0500
online-accounts: Set label relationship for listboxes
Set the label relationships so that screen readers
read the headers for the listboxes.
panels/online-accounts/online-accounts.ui | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/panels/online-accounts/online-accounts.ui b/panels/online-accounts/online-accounts.ui
index d012183a9..bf5c6f902 100644
--- a/panels/online-accounts/online-accounts.ui
+++ b/panels/online-accounts/online-accounts.ui
@@ -88,7 +88,7 @@
<property name="hexpand">True</property>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="accounts_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="wrap">True</property>
@@ -98,6 +98,9 @@
<attributes>
<attribute name="scale" value="1.66" />
</attributes>
+ <accessibility>
+ <relation target="accounts_listbox" type="label-for"/>
+ </accessibility>
</object>
</child>
<child>
@@ -117,12 +120,15 @@
<property name="can_focus">True</property>
<property name="selection_mode">none</property>
<signal name="row-activated" handler="on_listbox_row_activated"
object="CcGoaPanel" swapped="yes" />
+ <accessibility>
+ <relation target="accounts_label" type="labelled-by"/>
+ </accessibility>
</object>
</child>
</object>
</child>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="providers_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin-top">20</property>
@@ -131,6 +137,9 @@
<attributes>
<attribute name="weight" value="bold" />
</attributes>
+ <accessibility>
+ <relation target="providers_listbox" type="label-for"/>
+ </accessibility>
</object>
</child>
<child>
@@ -143,6 +152,9 @@
<property name="can_focus">True</property>
<property name="selection_mode">none</property>
<signal name="row-activated" handler="on_provider_row_activated"
object="CcGoaPanel" swapped="yes" />
+ <accessibility>
+ <relation target="providers_label" type="labelled-by"/>
+ </accessibility>
<child>
<object class="GtkListBoxRow" id="more_providers_row">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]