[orca] Rest of the fix for bgo#608150 - Firefox 3.6's changes to the	hierarchy of tables needs to be handle
- From: Joanmarie Diggs <joanied src gnome org>
 
- To: svn-commits-list gnome org
 
- Cc: 
 
- Subject: [orca] Rest of the fix for bgo#608150 - Firefox 3.6's changes to the	hierarchy of tables needs to be handle
 
- Date: Sun, 14 Feb 2010 22:35:40 +0000 (UTC)
 
commit 6f16a61162af708356bfc96f95ba8ec8602a3de2
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun Feb 14 17:31:49 2010 -0500
    Rest of the fix for bgo#608150 - Firefox 3.6's changes to the hierarchy of tables needs to be handled by Orca
    
    It turns out that the label guessing functionality is fine (yea!!);
    the problem is another instance of needing to be sure we have the
    table and not the new list item.
 src/orca/scripts/toolkits/Gecko/script.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 9afde54..8b1faa0 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -3481,9 +3481,11 @@ class Script(default.Script):
                                    [pyatspi.ROLE_TABLE_CELL],
                                    [pyatspi.ROLE_DOCUMENT_FRAME])
 
-        parent = obj.parent
+        parentTable = self.getAncestor(obj,
+                                       [pyatspi.ROLE_TABLE],
+                                       [pyatspi.ROLE_DOCUMENT_FRAME])
         try:
-            table = parent.queryTable()
+            table = parentTable.queryTable()
         except:
             pass
         else:
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]