[orca] Add a sanity check to the gtk toolkit script utilities
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add a sanity check to the gtk toolkit script utilities
- Date: Sun, 24 Nov 2013 00:37:58 +0000 (UTC)
commit 93297ae2656b80afd92925957743186d3ea07211
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Nov 23 19:37:07 2013 -0500
Add a sanity check to the gtk toolkit script utilities
src/orca/scripts/toolkits/gtk/script_utilities.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/gtk/script_utilities.py
b/src/orca/scripts/toolkits/gtk/script_utilities.py
index 7a32699..39f719e 100644
--- a/src/orca/scripts/toolkits/gtk/script_utilities.py
+++ b/src/orca/scripts/toolkits/gtk/script_utilities.py
@@ -40,7 +40,7 @@ class Utilities(script_utilities.Utilities):
return displayedText
# Present GtkLabel children inside a GtkListBox row.
- if obj.parent.getRole() == pyatspi.ROLE_LIST_BOX:
+ if obj.parent and obj.parent.getRole() == pyatspi.ROLE_LIST_BOX:
labels = self.unrelatedLabels(obj, onlyShowing=False)
displayedText = " ".join(map(self.displayedText, labels))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]