[orca/gnome-3-4] Another brlmon-related sanity check
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-4] Another brlmon-related sanity check
- Date: Tue, 3 Apr 2012 20:59:59 +0000 (UTC)
commit f9ccaa93b995518533c88bc776314e13758c6cd0
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Apr 3 16:59:43 2012 -0400
Another brlmon-related sanity check
src/orca/braille.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/braille.py b/src/orca/braille.py
index bf34e36..75e63ac 100644
--- a/src/orca/braille.py
+++ b/src/orca/braille.py
@@ -1447,13 +1447,18 @@ def refresh(panToCursor=True,
if settings.enableBrailleMonitor:
if not _monitor:
- _monitor = brlmon.BrlMon(_displaySize[0])
- _monitor.show_all()
+ try:
+ _monitor = brlmon.BrlMon(_displaySize[0])
+ _monitor.show_all()
+ except:
+ debug.println(debug.LEVEL_WARNING, "brlmon failed")
+ _monitor = None
if attributeMask:
subMask = attributeMask[startPos:endPos]
else:
subMask = None
- _monitor.writeText(cursorCell, substring, subMask)
+ if _monitor:
+ _monitor.writeText(cursorCell, substring, subMask)
elif _monitor:
_monitor.destroy()
_monitor = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]