[orca] Check WebKitGtk sections for inline-container presentation in braille
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Check WebKitGtk sections for inline-container presentation in braille
- Date: Mon, 13 Aug 2012 19:34:01 +0000 (UTC)
commit cb80b1e17f25792d37522ff7fcb6f2393365da21
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Aug 13 15:32:42 2012 -0400
Check WebKitGtk sections for inline-container presentation in braille
.../scripts/toolkits/WebKitGtk/script_utilities.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py b/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
index c6a71c0..befb0ff 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
@@ -226,6 +226,12 @@ class Utilities(script_utilities.Utilities):
def isInlineContainer(self, obj):
"""Returns True if obj is an inline/non-wrapped container."""
+ if obj.getRole() == pyatspi.ROLE_SECTION:
+ if obj.childCount > 1:
+ return self.onSameLine(obj[1], obj[1])
+
+ return False
+
if obj.getRole() == pyatspi.ROLE_LIST:
if obj.getState().contains(pyatspi.STATE_FOCUSABLE):
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]