[orca] Fix for BGO#615969 - Do not query toolkitName when queueing events
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for BGO#615969 - Do not query toolkitName when queueing events
- Date: Tue, 27 Apr 2010 17:20:04 +0000 (UTC)
commit 6d5c106b9f629b5f5b6c092d6e706883af5467d5
Author: Mike Gorse <mgorse novell com>
Date: Tue Apr 27 13:16:21 2010 -0400
Fix for BGO#615969 - Do not query toolkitName when queueing events
Only query toolkitName when queueing events if settings.synchronousToolkits
is not empty, and remove Java. Makes events show up in order with the
current at-spi2.
src/orca/focus_tracking_presenter.py | 5 +++--
src/orca/settings.py | 8 +++-----
2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/orca/focus_tracking_presenter.py b/src/orca/focus_tracking_presenter.py
index b1f5dc0..83268be 100644
--- a/src/orca/focus_tracking_presenter.py
+++ b/src/orca/focus_tracking_presenter.py
@@ -817,11 +817,12 @@ class FocusTrackingPresenter(presentation_manager.PresentationManager):
debug.println(debug.LEVEL_ALL,
"---------> QUEUEING EVENT %s" % e.type)
- # Some toolkits (e.g., Java - see bug #531869) need to
+ # Some toolkits (e.g., Java - see bug #531869) may need to
# have their events processed immediately.
#
try:
- if event.host_application.toolkitName \
+ if len(settings.synchronousToolkits) > 0 and \
+ event.host_application.toolkitName \
in settings.synchronousToolkits:
asyncMode = False
except:
diff --git a/src/orca/settings.py b/src/orca/settings.py
index 1975dfd..9eddfd8 100644
--- a/src/orca/settings.py
+++ b/src/orca/settings.py
@@ -869,12 +869,10 @@ useBonoboMain = True
asyncMode = True
# A list of toolkits whose events we need to process synchronously.
-# The only one right now is the Java toolkit (see bug #531869), but
-# we put this here to allow more toolkits to be more easily added
-# and for Java to be removed if issues with asynchronous processing
-# of its events are ever resolved.
+# This was originally added for the Java toolkit (see bug #531869), but
+# we put this here to allow more toolkits to be more easily added.
#
-synchronousToolkits = ["J2SE-access-bridge"]
+synchronousToolkits = []
# If True, we output debug information for the event queue. We
# use this in addition to log level to prevent debug logic from
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]