at-spi r982 - trunk/pyatspi
- From: eitani svn gnome org
- To: svn-commits-list gnome org
- Subject: at-spi r982 - trunk/pyatspi
- Date: Tue, 29 Jan 2008 02:13:24 +0000 (GMT)
Author: eitani
Date: Tue Jan 29 02:13:23 2008
New Revision: 982
URL: http://svn.gnome.org/viewvc/at-spi?rev=982&view=rev
Log:
* accessible.py (_AccessibleMixin.getApplication): Added a ref()
which is required when holding a reference to a _narrow()ed
instance (bug #512702).
Modified:
trunk/pyatspi/ChangeLog
trunk/pyatspi/accessible.py
Modified: trunk/pyatspi/accessible.py
==============================================================================
--- trunk/pyatspi/accessible.py (original)
+++ trunk/pyatspi/accessible.py Tue Jan 29 02:13:23 2008
@@ -630,6 +630,7 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]