[nautilus] Preferences window: Add proper label relationships to unlabeled comboboxes for screen reader users



commit c814b8f3adf7251721cedab3f0411ce84c6f77e5
Author: Peter Vágner <pvagner pvagner tk>
Date:   Thu Apr 26 20:47:22 2018 +0200

    Preferences window: Add proper label relationships to unlabeled
    comboboxes for screen reader users

 src/resources/ui/nautilus-preferences-window.ui | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/src/resources/ui/nautilus-preferences-window.ui b/src/resources/ui/nautilus-preferences-window.ui
index cbd66ac1a..edbabcbda 100644
--- a/src/resources/ui/nautilus-preferences-window.ui
+++ b/src/resources/ui/nautilus-preferences-window.ui
@@ -232,6 +232,9 @@
                               <object class="GtkComboBoxText" id="captions_0_combobox">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
+                                <accessibility>
+                                  <relation type="labelled-by" target="label8"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
@@ -264,6 +267,9 @@
                               <object class="GtkComboBoxText" id="captions_2_combobox">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
+                                <accessibility>
+                                  <relation type="labelled-by" target="label11"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
@@ -296,6 +302,9 @@
                               <object class="GtkComboBoxText" id="captions_1_combobox">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
+                                <accessibility>
+                                  <relation type="labelled-by" target="label9"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
@@ -318,6 +327,9 @@
                             <style>
                               <class name="dim-label"/>
                             </style>
+                            <accessibility>
+                              <relation type="label-for" target="captions_1_combobox"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="left_attach">0</property>
@@ -333,6 +345,9 @@
                             <style>
                               <class name="dim-label"/>
                             </style>
+                            <accessibility>
+                              <relation type="label-for" target="captions_2_combobox"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="left_attach">0</property>
@@ -348,6 +363,9 @@
                             <style>
                               <class name="dim-label"/>
                             </style>
+                            <accessibility>
+                              <relation type="label-for" target="captions_0_combobox"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="left_attach">0</property>


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