[gnome-control-center] Some more a11y fixes



commit ebe174f51ca1ac66944c9b322aefefb7a5823238
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 15 22:14:20 2011 -0400

    Some more a11y fixes
    
    Add labelled-by relations to 'label-less' switches.

 panels/screen/screen.ui |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/panels/screen/screen.ui b/panels/screen/screen.ui
index 6ed8a7d..a674d10 100644
--- a/panels/screen/screen.ui
+++ b/panels/screen/screen.ui
@@ -119,6 +119,9 @@
                             <property name="digits">0</property>
                             <property name="draw_value">False</property>
                             <property name="value_pos">bottom</property>
+                            <accessibility>
+                              <relation target="brightness-section-heading" type="labelled-by"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="position">0</property>
@@ -126,7 +129,8 @@
                         </child>
                         <child>
                           <object class="GtkCheckButton" id="screen_auto_reduce_checkbutton">
-                            <property name="label" translatable="yes">Dim screen to save power</property>
+                            <property name="label" translatable="yes">_Dim screen to save power</property>
+                            <property name="use_underline">True</property>
                             <property name="visible">True</property>
                             <property name="can_focus">True</property>
                             <property name="receives_default">False</property>
@@ -178,7 +182,7 @@
                   </object>
                 </child>
                 <child type="label">
-                  <object class="GtkLabel" id="label5">
+                  <object class="GtkLabel" id="brightness-section-heading">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">Brightness</property>
                     <property name="use_markup">True</property>
@@ -216,6 +220,9 @@
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">False</property>
+                                <accessibility>
+                                  <relation target="lock-section-heading" type="labelled-by"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
@@ -305,7 +312,7 @@
                   </object>
                 </child>
                 <child type="label">
-                  <object class="GtkLabel" id="label6">
+                  <object class="GtkLabel" id="lock-section-heading">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">Lock</property>
                     <property name="use_markup">True</property>



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