From a983c554967f80c942d572c88af82cdaff1a5138 Mon Sep 17 00:00:00 2001 From: eitani Date: Tue, 29 Jan 2008 02:13:23 +0000 Subject: [PATCH] * accessible.py (_AccessibleMixin.getApplication): Added a ref() which is required when holding a reference to a _narrow()ed instance (bug #512702). git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@982 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- pyatspi/ChangeLog | 6 ++++++ pyatspi/accessible.py | 1 + 2 files changed, 7 insertions(+) diff --git a/pyatspi/ChangeLog b/pyatspi/ChangeLog index deaf5b1..f70bd55 100644 --- a/pyatspi/ChangeLog +++ b/pyatspi/ChangeLog @@ -1,3 +1,9 @@ +2008-01-28 Eitan Isaacson + + * accessible.py (_AccessibleMixin.getApplication): Added a ref() + which is required when holding a reference to a _narrow()ed + instance (bug #512702). + 2008-01-23 Eitan Isaacson * registry.py (Registry.pumpQueuedEvents): Added this method for diff --git a/pyatspi/accessible.py b/pyatspi/accessible.py index 9394857..80a7589 100644 --- a/pyatspi/accessible.py +++ b/pyatspi/accessible.py @@ -630,6 +630,7 @@ class _AccessibleMixin(object): try: while curr.parent is not None and (not curr.parent == curr): curr = curr.parent + curr.ref() return curr._narrow(Accessibility.Application) except: return None -- 2.7.4