[orca/570658] Adjust what we present for Links to better match the old generator
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca/570658] Adjust what we present for Links to better match the old generator
- Date: Wed, 1 Jul 2009 17:08:10 +0000 (UTC)
commit 3e58c2621657d608027bea48d93f8e47cc180380
Author: Willie Walker <william walker sun com>
Date: Wed Jul 1 10:39:57 2009 -0400
Adjust what we present for Links to better match the old generator
src/orca/scripts/toolkits/Gecko/formatting.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/formatting.py b/src/orca/scripts/toolkits/Gecko/formatting.py
index 6b28c9c..98f022f 100644
--- a/src/orca/scripts/toolkits/Gecko/formatting.py
+++ b/src/orca/scripts/toolkits/Gecko/formatting.py
@@ -99,8 +99,8 @@ formatting = {
# the Link constructor.]]]
#
pyatspi.ROLE_LINK: {
- 'focused': '[Link(obj, asString(currentLineText))]',
- 'unfocused': '[Link(obj, asString(currentLineText))]'
+ 'focused': '[Link(obj, asString((currentLineText and len(currentLineText[0]) and currentLineText) or displayedText or name))]',
+ 'unfocused': '[Link(obj, asString((currentLineText and len(currentLineText[0]) and currentLineText) or displayedText or name))]'
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]