[orca/gnome-3-6] Use labelOrName for sliders.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-6] Use labelOrName for sliders.
- Date: Thu, 11 Oct 2012 13:42:17 +0000 (UTC)
commit e68605a62075557f2c1c5862b2e67f005f295afc
Author: Frederik Gladhorn <gladhorn kde org>
Date: Wed Sep 26 02:53:33 2012 +0200
Use labelOrName for sliders.
Fix for bug #684838: Orca should present the accessible name of sliders
src/orca/formatting.py | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index dfad72c..1963689 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -242,19 +242,9 @@ formatting = {
'detailedWhereAmI': 'label + readOnly + textRole + textContentWithAttributes + anyTextSelection + ' + MNEMONIC + ' + ' + TUTORIAL
},
pyatspi.ROLE_SLIDER: {
- # Ignore the text on the slider. See bug 340559
- # (http://bugzilla.gnome.org/show_bug.cgi?id=340559): the
- # implementors of the slider support decided to put in a
- # Unicode left-to-right character as part of the text,
- # even though that is not painted on the screen.
- #
- # In Java, however, there are sliders without a label. In
- # this case, we'll add to presentation the slider name if
- # it exists and we haven't found anything yet.
- #
'focused': 'value',
- 'unfocused': 'label + roleName + value + required + availability + ' + MNEMONIC,
- 'basicWhereAmI': 'label + roleName + value + percentage + ' + MNEMONIC + ' + accelerator + required'
+ 'unfocused': 'labelOrName + roleName + value + required + availability + ' + MNEMONIC,
+ 'basicWhereAmI': 'labelOrName + roleName + value + percentage + ' + MNEMONIC + ' + accelerator + required'
},
pyatspi.ROLE_SPIN_BUTTON: {
'focused': 'name',
@@ -499,7 +489,7 @@ formatting = {
#'REAL_ROLE_SCROLL_PANE': 'default'
pyatspi.ROLE_SLIDER: {
'unfocused': '[Component(obj,\
- asString(label + value + roleName + required))]'
+ asString(labelOrName + value + roleName + required))]'
},
pyatspi.ROLE_SPIN_BUTTON: {
'unfocused': '[Text(obj, asString(label), asString(eol))]\
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]