[orca] Add support for the new, proper role being assigned to GtkListBox items
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add support for the new, proper role being assigned to GtkListBox items
- Date: Wed, 11 Sep 2013 17:24:41 +0000 (UTC)
commit d4c3991318f4dfa3100ddec341f801f73a19bcb4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Sep 11 13:18:25 2013 -0400
Add support for the new, proper role being assigned to GtkListBox items
src/orca/formatting.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index 1624e51..0ae5439 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -186,7 +186,7 @@ formatting = {
},
pyatspi.ROLE_LIST_ITEM: {
'focused': 'expandableState + availability',
- 'unfocused': 'labelAndName + allTextSelection + expandableState + availability + positionInList',
+ 'unfocused': 'labelAndName + allTextSelection + expandableState + availability + positionInList
+ childWidget',
'basicWhereAmI': 'label + roleName + name + positionInList + expandableState + (nodeLevel or
nestingLevel)'
},
pyatspi.ROLE_MENU: {
@@ -437,10 +437,12 @@ formatting = {
pyatspi.ROLE_LIST_ITEM: {
'focused': '[Component(obj,\
asString(label + displayedText + expandableState + roleName +
availability) + asString(accelerator))]\
- + (nestingLevel and [Region(" " + asString(nestingLevel))])',
+ + (nestingLevel and [Region(" " + asString(nestingLevel))])\
+ + (childWidget and ([Region(" ")] + childWidget))',
'unfocused': '[Component(obj,\
asString(label + displayedText + expandableState))]\
- + (nestingLevel and [Region(" " + asString(nestingLevel))])',
+ + (nestingLevel and [Region(" " + asString(nestingLevel))])\
+ + (childWidget and ([Region(" ")] + childWidget))',
},
pyatspi.ROLE_MENU: {
'focused': '[Component(obj,\
@@ -582,7 +584,7 @@ if settings.useExperimentalSpeechProsody:
formatting['speech'][pyatspi.ROLE_LIST]['unfocused'] = \
'labelOrName + pause + focusedItem + pause + multiselectableState + numberOfChildren + pause'
formatting['speech'][pyatspi.ROLE_LIST_ITEM]['unfocused'] = \
- 'labelAndName + allTextSelection + pause + expandableState + pause + availability + positionInList'
+ 'labelAndName + allTextSelection + pause + expandableState + pause + availability + positionInList +
pause + childWidget'
formatting['speech'][pyatspi.ROLE_LIST_ITEM]['basicWhereAmI'] = \
'label + roleName + pause + name + pause + positionInList + pause + expandableState + (nodeLevel or
nestingLevel) + pause'
formatting['speech'][pyatspi.ROLE_MENU]['unfocused'] = 'labelAndName + allTextSelection + roleName +
availability + ' + MNEMONIC + ' + accelerator + pause + positionInList'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]