[orca] Only present the status bar if it is showing and visible
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Only present the status bar if it is showing and visible
- Date: Thu, 9 Apr 2020 16:08:09 +0000 (UTC)
commit 7ec6a1717878b8abf2a28cb32e52378de5fb8cee
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Apr 9 12:05:00 2020 -0400
Only present the status bar if it is showing and visible
Some applications might have multiple status bars, only one of which
is on the screen and should be presented to the user. On-screen objects
are expected to have both the showing and the visible states present.
Therefore check for this condition before assuming we have located the
correct status bar.
src/orca/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 2453bd637..500cd2d1d 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2208,7 +2208,7 @@ class Utilities:
elif not obj[i].getRole() in skipRoles:
statusBar = self.statusBar(obj[i])
- if statusBar:
+ if statusBar and self.isShowingAndVisible(statusBar):
break
return statusBar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]