[orca] Fix for Orca presenting checked tri-state checkboxes as partially checked



commit b245247761240ad7a6503fc70232ee957ccc1c38
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat May 10 14:18:15 2014 -0400

    Fix for Orca presenting checked tri-state checkboxes as partially checked

 src/orca/generator.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index 0031757..85e8f60 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -491,10 +491,10 @@ class Generator:
         args['stringType'] = 'checkbox'
         indicators = self._script.formatting.getString(**args)
         state = obj.getState()
-        if state.contains(pyatspi.STATE_INDETERMINATE):
-            result.append(indicators[2])
-        elif state.contains(pyatspi.STATE_CHECKED):
+        if state.contains(pyatspi.STATE_CHECKED):
             result.append(indicators[1])
+        elif state.contains(pyatspi.STATE_INDETERMINATE):
+            result.append(indicators[2])
         else:
             result.append(indicators[0])
         return result


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