[gnome-control-center/wip/privacy-a11y: 2/3] privacy: Set label relationships



commit e596a5e8005607813d14d59edc65697898a16348
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Thu Jan 3 13:47:01 2019 -0500

    privacy: Set label relationships
    
    Set label relationships so that the widgets get the
    correct label when used with a screen reader.

 panels/privacy/cc-privacy-panel.ui | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/panels/privacy/cc-privacy-panel.ui b/panels/privacy/cc-privacy-panel.ui
index 3ff94a1a0..8b9190176 100644
--- a/panels/privacy/cc-privacy-panel.ui
+++ b/panels/privacy/cc-privacy-panel.ui
@@ -827,6 +827,9 @@ All the information we collect is made anonymous, and we will never share your d
                             <property name="xalign">0</property>
                             <property name="label" translatable="yes">_Location Services</property>
                             <property name="use_underline">True</property>
+                            <accessibility>
+                              <relation target="location_services_switch" type="label-for"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="left_attach">0</property>
@@ -841,6 +844,9 @@ All the information we collect is made anonymous, and we will never share your d
                             <property name="visible">True</property>
                             <property name="can_focus">True</property>
                             <property name="halign">end</property>
+                            <accessibility>
+                              <relation target="location_services_label" type="labelled-by"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="left_attach">1</property>
@@ -876,6 +882,9 @@ All the information we collect is made anonymous, and we will never share your d
             <attributes>
               <attribute name="weight" value="bold"/>
             </attributes>
+            <accessibility>
+              <relation target="location_apps_list_box" type="label-for"/>
+            </accessibility>
           </object>
           <packing>
             <property name="expand">False</property>
@@ -896,6 +905,9 @@ All the information we collect is made anonymous, and we will never share your d
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="selection_mode">none</property>
+                <accessibility>
+                  <relation target="location_apps_label" type="labelled-by"/>
+                </accessibility>
               </object>
             </child>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]