universal access: Fix accessible labels for switches

Setting mnemonic-widget on the labels makes orca read out meaningful
text for the switches.
https://bugzilla.gnome.org/show_bug.cgi?id=683703
This commit is contained in:
Matthias Clasen 2012-09-13 00:38:46 -04:00
parent 4f59a4aee6
commit d5a186d26c

View file

@ -179,6 +179,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">High Contrast</property>
<property name="mnemonic_widget">seeing_contrast_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -229,6 +230,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Beep on Caps and Num Lock</property>
<property name="mnemonic_widget">seeing_toggle_keys_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -323,6 +325,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Screen Reader</property>
<property name="mnemonic_widget">seeing_reader_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -424,6 +427,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="universal access, zoom">Zoom</property>
<property name="mnemonic_widget">seeing_zoom_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -660,6 +664,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Large Text</property>
<property name="mnemonic_widget">seeing_large_text_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -759,6 +764,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Visual Alerts</property>
<property name="mnemonic_widget">hearing_visual_alerts_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -866,6 +872,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Closed Captioning</property>
<property name="mnemonic_widget">hearing_captions_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -1059,6 +1066,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">On Screen Keyboard</property>
<property name="mnemonic_widget">typing_assistant_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -1088,6 +1096,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Sticky Keys</property>
<property name="mnemonic_widget">typing_sticky_keys_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -1195,6 +1204,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Slow Keys</property>
<property name="mnemonic_widget">typing_slow_keys_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -1431,6 +1441,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Bounce Keys</property>
<property name="mnemonic_widget">typing_bounce_keys_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -1604,6 +1615,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Enable by Keyboard</property>
<property name="mnemonic_widget">typing_keyboard_toggle_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -1768,6 +1780,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Mouse Keys</property>
<property name="mnemonic_widget">pointing_mouse_keys_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -1890,6 +1903,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Video Mouse</property>
<property name="mnemonic_widget">pointing_video_mouse_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -1966,6 +1980,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Simulated Secondary Click</property>
<property name="mnemonic_widget">pointing_second_click_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@ -2131,6 +2146,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Hover Click</property>
<property name="mnemonic_widget">pointing_hover_click_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>