[orca/570658] Honor settings.enableBrailleContext (work on bgo#570658)



commit 9819336ec7e7f87d701ac80012b811b0771ae087
Author: Willie Walker <william walker sun com>
Date:   Thu Jul 9 07:50:27 2009 -0400

    Honor settings.enableBrailleContext (work on bgo#570658)

 src/orca/braille_generator.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/braille_generator.py b/src/orca/braille_generator.py
index 3cc37cd..fee54ab 100644
--- a/src/orca/braille_generator.py
+++ b/src/orca/braille_generator.py
@@ -289,7 +289,9 @@ class BrailleGenerator(generator.Generator):
         # are on the very first line.  Otherwise, we show only the
         # line.
         #
-        include = True
+        include = settings.enableBrailleContext
+        if not include:
+            return include
         try:
             text = obj.queryText()
         except NotImplementedError:



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