[orca] Fix for BGO#617204 - Name changed on comboboxes that have focus should not be announced.



commit 919004f368605d04fb3493671969531e76bb6899
Author: Mesar Hameed <mhameed src gnome org>
Date:   Thu Apr 29 23:17:55 2010 +0100

    Fix for BGO#617204 - Name changed on comboboxes that have focus should not be announced.

 src/orca/default.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/default.py b/src/orca/default.py
index f0749a1..3eb3253 100644
--- a/src/orca/default.py
+++ b/src/orca/default.py
@@ -3346,7 +3346,10 @@ class Script(script.Script):
         # didn't change.  I'm guessing this is going to be a vagary in all
         # of GTK+.]]]
         #
-        if event.source and (event.source.getRole() == pyatspi.ROLE_DIALOG) \
+        # We are ignoring name changes in comboboxes that have focus
+        # see bgo#617204
+        ignoreList = [pyatspi.ROLE_DIALOG, pyatspi.ROLE_COMBO_BOX]
+        if event.source and (event.source.getRole() in ignoreList) \
            and (event.source == orca_state.locusOfFocus):
             return
 



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