[orca] Do not treat "busy indicator" progress bars as progress bars with values



commit 0c162b3b07a2c12fceef6336bb852d332c70bfb6
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Mar 12 08:16:30 2012 -0400

    Do not treat "busy indicator" progress bars as progress bars with values

 src/orca/scripts/default.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 7fa1332..4410b13 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -4399,6 +4399,9 @@ 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.
+                    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]