[orca] More work on bgo#596635 - gcalctool script will need to be updated for 2.29/2.30/3.0



commit ac25741b889c5ded3beb2c3a013d7ea6df33e7c3
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Tue Sep 29 20:56:13 2009 -0400

    More work on bgo#596635 - gcalctool script will need to be updated for 2.29/2.30/3.0
    
    This fixes the following issue:
    * Orca does not correctly speak the names of the new superscript
      and subscript toggle buttons.

 .../scripts/apps/gcalctool/speech_generator.py     |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/gcalctool/speech_generator.py b/src/orca/scripts/apps/gcalctool/speech_generator.py
index 4b027c6..9c4acf9 100644
--- a/src/orca/scripts/apps/gcalctool/speech_generator.py
+++ b/src/orca/scripts/apps/gcalctool/speech_generator.py
@@ -41,7 +41,8 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
         hints being given to us by gcalctool for it's mathematical
         operator buttons."""
 
-        if obj.getRole() != pyatspi.ROLE_PUSH_BUTTON:
+        if not obj.getRole() in [pyatspi.ROLE_PUSH_BUTTON,
+                                 pyatspi.ROLE_TOGGLE_BUTTON]:
             return speech_generator.SpeechGenerator._generateName(\
                 self, obj)
 



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