[orca/gnome-2-26] Rest of the fix for bug 568658



commit 6aba6af991101eae80320101e8f36dd9a8ca9cc4
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun Jun 21 12:23:30 2009 -0400

    Rest of the fix for bug 568658
    
    This change causes us to dump the pyatspi cache if we're in Thunderbird
    and exit flat review. As a result, we should not have bogus table data
    hanging around.

 src/orca/scripts/apps/Thunderbird/script.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index 33caae1..adcf9e4 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -592,3 +592,13 @@ class Script(Gecko.Script):
                 obj = obj.parent
 
         return None
+
+    def toggleFlatReviewMode(self, inputEvent=None):
+        """Toggles between flat review mode and focus tracking mode."""
+
+        # If we're leaving flat review dump the cache. See bug 568658.
+        #
+        if self.flatReviewContext:
+            pyatspi.clearCache()
+
+        return default.Script.toggleFlatReviewMode(self, inputEvent)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]