[pyatspi2] Cache role changes
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Cache role changes
- Date: Thu, 20 May 2010 00:49:49 +0000 (UTC)
commit 5296f3f340030fda0c1d155418a1f4c23b0e00a9
Author: Mike Gorse <mgorse novell com>
Date: Wed May 19 20:48:40 2010 -0400
Cache role changes
pyatspi/cache.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/cache.py b/pyatspi/cache.py
index 69e6f23..e25d9d9 100644
--- a/pyatspi/cache.py
+++ b/pyatspi/cache.py
@@ -170,7 +170,6 @@ class ApplicationCacheManager (object):
cache_obj = bus.get_object (bus_name, _ATSPI_CACHE_PATH, introspect=False)
cache_itf = dbus.Interface (cache_obj, _ATSPI_CACHE_INTERFACE)
- r = registry.Registry()
self._add_objects(cache_itf.GetItems())
self._property_change = \
@@ -242,6 +241,8 @@ class ApplicationCacheManager (object):
item = self._cache[(sender, path)]
if minor == "accessible-name":
item.name = any_data
+ if minor == "accessible-role":
+ item.role = any_data
elif minor == "accessible-description":
item.description = any_data
elif minor == "accessible-parent":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]