[orca] Ignore name-changed events for table cells



commit bf7412ac88195924cc5a2d30cd433925c0df2c75
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jan 28 11:53:20 2014 -0500

    Ignore name-changed events for table cells
    
    We get a ton of these events from trees, and we don't even need them.
    Calling isSameObject() to reach this conclusion is non-performant.

 src/orca/scripts/default.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 330ca42..49ffb72 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2294,6 +2294,11 @@ class Script(script.Script):
         if role == pyatspi.ROLE_COMBO_BOX:
             return
 
+        # Table cell accessibles in trees are often reused. When this occurs,
+        # we get name-changed events when the selection changes.
+        if role == pyatspi.ROLE_TABLE_CELL:
+            return
+
         # Normally, we only care about name changes in the current object.
         # But with the new GtkHeaderBar, we are seeing instances where the
         # real frame remains the same, but the functional frame changes


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