[gnome-control-center] Fix a11y/keynav issues in power panel



commit b7f82e98ff03d06cf93e6a368d35490e90561600
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 15 14:50:17 2011 -0400

    Fix a11y/keynav issues in power panel
    
    Add mnemonics to all items. We may need to revisit this and set
    labeled-by relations for the combo boxes where the labels are
    checkboxes (in that case, the mnemonic automatism doesn't really
    work, I think).
    
    Part of bug 650132

 panels/power/power.ui |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/panels/power/power.ui b/panels/power/power.ui
index 074d245..863be73 100644
--- a/panels/power/power.ui
+++ b/panels/power/power.ui
@@ -127,11 +127,12 @@
                             <property name="visible">True</property>
                             <child>
                               <object class="GtkCheckButton" id="checkbutton_sleep_ac">
-                                <property name="label" translatable="yes">On AC power:</property>
+                                <property name="label" translatable="yes">On AC _power:</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">False</property>
                                 <property name="use_action_appearance">False</property>
+                                <property name="use_underline">True</property>
                                 <property name="draw_indicator">True</property>
                               </object>
                               <packing>
@@ -171,11 +172,12 @@
                             <property name="visible">True</property>
                             <child>
                               <object class="GtkCheckButton" id="checkbutton_sleep_battery">
-                                <property name="label" translatable="yes">On battery power:</property>
+                                <property name="label" translatable="yes">On _battery power:</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">False</property>
                                 <property name="use_action_appearance">False</property>
+                                <property name="use_underline">True</property>
                                 <property name="draw_indicator">True</property>
                               </object>
                               <packing>
@@ -284,7 +286,9 @@
                     <child>
                       <object class="GtkLabel" id="label5">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">When power is critically low:</property>
+                        <property name="label" translatable="yes">When power is _critically low:</property>
+                        <property name="use_underline">True</property>
+                        <property name="mnemonic_widget">combobox_critical</property>
                       </object>
                       <packing>
                         <property name="expand">False</property>
@@ -337,7 +341,9 @@
                     <child>
                       <object class="GtkLabel" id="label4">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">When the power button is pressed:</property>
+                        <property name="label" translatable="yes">When the p_ower button is pressed:</property>
+                        <property name="use_underline">True</property>
+                        <property name="mnemonic_widget">combobox_button_power</property>
                       </object>
                       <packing>
                         <property name="expand">False</property>
@@ -380,7 +386,9 @@
                     <child>
                       <object class="GtkLabel" id="label3">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">When the sleep button is pressed:</property>
+                        <property name="label" translatable="yes">When the _sleep button is pressed:</property>
+                        <property name="use_underline">True</property>
+                        <property name="mnemonic_widget">combobox_button_sleep</property>
                       </object>
                       <packing>
                         <property name="expand">False</property>



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