[orca] Another brlmon-related sanity check
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Another brlmon-related sanity check
- Date: Tue, 3 Apr 2012 21:00:04 +0000 (UTC)
commit 1ef3eebfbc94c7efafd36222f3d867fa39d13332
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Apr 3 16:58:13 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]