[pyatspi2] Avoid caching children of MANAGES_DESCENDANTS objects
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Avoid caching children of MANAGES_DESCENDANTS objects
- Date: Fri, 16 Apr 2010 17:48:42 +0000 (UTC)
commit c8b16a03b9666ceb0b6f8fa679ce1260171312ca
Author: Mike Gorse <mgorse novell com>
Date: Sat Apr 10 18:23:04 2010 -0400
Avoid caching children of MANAGES_DESCENDANTS objects
pyatspi/cache.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pyatspi/cache.py b/pyatspi/cache.py
index 012ca9d..3f66de8 100644
--- a/pyatspi/cache.py
+++ b/pyatspi/cache.py
@@ -253,6 +253,8 @@ class ApplicationCacheManager (object):
if interface==_ATSPI_EVENT_OBJECT_INTERFACE:
if (sender, path) in self._cache:
item = self._cache[(sender, path)]
+ if item.state[0] & (1 << state.STATE_MANAGES_DESCENDANTS):
+ return
if minor == "add":
item.children.insert (detail1, any_data)
elif minor == "remove":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]