[orca/gnome-3-10] Add a sanity check for broken value-interface implementations
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-10] Add a sanity check for broken value-interface implementations
- Date: Sun, 17 Nov 2013 18:35:40 +0000 (UTC)
commit 61df4d4c1e38077a325d9fa4ba1eddc7cf6f7609
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Nov 17 13:34:17 2013 -0500
Add a sanity check for broken value-interface implementations
src/orca/scripts/default.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 8350f5b..2f1d373 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -3559,8 +3559,11 @@ class Script(script.Script):
lastProgressBarTime = self.lastProgressBarTime[obj]
lastProgressBarValue = self.lastProgressBarValue[obj]
value = obj.queryValue()
- if value.maximumValue == value.minimumValue:
- # This is a busy indicator and not a real progress bar.
+ try:
+ if value.maximumValue == value.minimumValue:
+ # This is a busy indicator and not a real progress bar.
+ return
+ except:
return
percentValue = int((value.currentValue / \
(value.maximumValue - value.minimumValue)) * 100.0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]