[orca] Add a setting to present updates for status bar progress bars.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add a setting to present updates for status bar progress bars.
- Date: Wed, 24 Feb 2016 19:17:28 +0000 (UTC)
commit ea61a4df544f6db62b88dd9dfc6682ed3b300925
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 24 14:13:32 2016 -0500
Add a setting to present updates for status bar progress bars.
Notes:
* Many status bar progress bars are busy indicators; this setting will
have no impact on busy indicators because the value of a busy indicator
is always the same.
* This is disabled by default. Because of GUI freeze, there is no GUI
to set this option. At this time you can enable it by adding the
following lines to your orca-customizations.py file:
import orca.settings
orca.settings.ignoreStatusBarProgressBars = False
src/orca/script_utilities.py | 7 ++++---
src/orca/settings.py | 2 ++
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 9a4347f..0c6b5d1 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -842,9 +842,10 @@ class Utilities:
if percent != 100:
return False, "Last update was only %is ago" % interval
- isStatusBar = lambda x: x and x.getRole() == pyatspi.ROLE_STATUS_BAR
- if pyatspi.findAncestor(obj, isStatusBar):
- return False, "Is status bar descendant"
+ if _settingsManager.getSetting('ignoreStatusBarProgressBars'):
+ isStatusBar = lambda x: x and x.getRole() == pyatspi.ROLE_STATUS_BAR
+ if pyatspi.findAncestor(obj, isStatusBar):
+ return False, "Is status bar descendant"
verbosity = _settingsManager.getSetting('progressBarVerbosity')
if verbosity == settings.PROGRESS_BAR_ALL:
diff --git a/src/orca/settings.py b/src/orca/settings.py
index 855fdc2..2b1ffc3 100644
--- a/src/orca/settings.py
+++ b/src/orca/settings.py
@@ -93,6 +93,7 @@ userCustomizableSettings = [
"beepProgressBarUpdates",
"progressBarUpdateInterval",
"progressBarVerbosity",
+ "ignoreStatusBarProgressBars",
"enableContractedBraille",
"brailleContractionTable",
"enableMouseReview",
@@ -290,6 +291,7 @@ brailleProgressBarUpdates = False
beepProgressBarUpdates = False
progressBarUpdateInterval = 10
progressBarVerbosity = PROGRESS_BAR_APPLICATION
+ignoreStatusBarProgressBars = True
# Structural navigation
structuralNavigationEnabled = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]