[orca] Add handling for GtkListBox items used by LibreOffice



commit 6669d8170c605c7143fec3c97b26012c7c42b75b
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Jul 28 01:45:33 2016 -0400

    Add handling for GtkListBox items used by LibreOffice

 src/orca/scripts/apps/soffice/script_utilities.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script_utilities.py 
b/src/orca/scripts/apps/soffice/script_utilities.py
index d78d201..08eddef 100644
--- a/src/orca/scripts/apps/soffice/script_utilities.py
+++ b/src/orca/scripts/apps/soffice/script_utilities.py
@@ -96,6 +96,12 @@ class Utilities(script_utilities.Utilities):
            and (self.isSpreadSheetCell(obj) or self.isTextDocumentCell(obj)):
             return ""
 
+        # TODO - JD: Once the VCL script is completed and subclasses the
+        # appropriate toolkit scripts, this should not be needed.
+        if obj.parent and obj.parent.getRole() == pyatspi.ROLE_LIST_BOX:
+            labels = self.unrelatedLabels(obj, onlyShowing=False)
+            text = " ".join(map(self.displayedText, labels))
+
         return text
 
     def isCellBeingEdited(self, obj):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]