[orca] Use obj.parent as fallback for computing position in a list
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca] Use obj.parent as fallback for computing position in a list
- Date: Wed, 17 Jun 2009 09:55:16 -0400 (EDT)
commit 4c0459a81726c231c2a80831387c40745dff73a3
Author: Willie Walker <william walker sun com>
Date: Wed Jun 17 09:54:30 2009 -0400
Use obj.parent as fallback for computing position in a list
src/orca/speech_generator.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 205a50e..90a4a93 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1948,6 +1948,8 @@ class SpeechGenerator:
parent = target
break
obj = parent
+ else:
+ obj = obj.parent
# We want to return the position relative to this hierarchical
# level and not the entire list. If the object in question
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]