[orca] Add an error message to present when Gecko times out on us
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add an error message to present when Gecko times out on us
- Date: Tue, 5 Feb 2013 04:09:42 +0000 (UTC)
commit 5f2e986fb7a89474c9d84819dbd30007b331ef83
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 4 23:09:10 2013 -0500
Add an error message to present when Gecko times out on us
src/orca/structural_navigation.py | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index b11931b..6bdf651 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -354,7 +354,18 @@ class StructuralNavigationObject:
def showList(self, script, inputEvent):
"""Show a list of all the items with this object type."""
- objects = self.structuralNavigation._getAll(self)
+ try:
+ objects = self.structuralNavigation._getAll(self)
+ except:
+ # Translators: Orca has a command that presents a list of
+ # structural navigation objects in a dialog box so that users
+ # can navigate more quickly than they could with native keyboard
+ # navigation. This is a message that will be presented to the
+ # user when an error (such as the operation timing out) kept us
+ # from getting these objects.
+ script.presentMessage(_("Error: Could not create list of objects."))
+ return
+
title, columnHeaders, rowData = self._dialogData()
rows = [[obj] + rowData(obj) for obj in objects]
orca_gui_navlist.showUI(title, columnHeaders, rows)
@@ -399,7 +410,18 @@ class StructuralNavigationObject:
"""
def showListAtLevel(script, inputEvent):
- objects = self.structuralNavigation._getAll(self, arg=level)
+ try:
+ objects = self.structuralNavigation._getAll(self, arg=level)
+ except:
+ # Translators: Orca has a command that presents a list of
+ # structural navigation objects in a dialog box so that users
+ # can navigate more quickly than they could with native keyboard
+ # navigation. This is a message that will be presented to the
+ # user when an error (such as the operation timing out) kept us
+ # from getting these objects.
+ script.presentMessage(_("Error: Could not create list of objects."))
+ return
+
title, columnHeaders, rowData = self._dialogData(arg=level)
rows = [[obj] + rowData(obj) for obj in objects]
orca_gui_navlist.showUI(title, columnHeaders, rows)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]