[pyatspi2] Fix get_application errors. A check was not made to see if the
- From: Mark Doffman <markdoffman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pyatspi2] Fix get_application errors. A check was not made to see if the
- Date: Fri, 18 Dec 2009 17:50:06 +0000 (UTC)
commit 4299ad337a91ac485412ac0f4ade4b0bd987bf67
Author: Mark Doffman <mark doffman codethink co uk>
Date: Fri Dec 18 06:06:12 2009 -0800
Fix get_application errors. A check was not made to see if the
application name was the Registry.
pyatspi/desktop.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/desktop.py b/pyatspi/desktop.py
index 2d9c7dc..ffde93a 100644
--- a/pyatspi/desktop.py
+++ b/pyatspi/desktop.py
@@ -487,7 +487,10 @@ class CachedDesktop (BaseDesktop):
self.cache = cache
def create_application (self, app_name):
- acc_path = self.cache.get_app_root(app_name)
+ if app_name == interfaces.ATSPI_REGISTRY_NAME:
+ path = interfaces.ATSPI_DESKTOP_PATH
+ else:
+ acc_path = self.cache.get_app_root(app_name)
return self.acc_factory.create_accessible (app_name,
acc_path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]