at-spi r1019 - trunk/pyatspi
- From: wwalker svn gnome org
- To: svn-commits-list gnome org
- Subject: at-spi r1019 - trunk/pyatspi
- Date: Wed, 25 Jun 2008 17:02:44 +0000 (UTC)
Author: wwalker
Date: Wed Jun 25 17:02:44 2008
New Revision: 1019
URL: http://svn.gnome.org/viewvc/at-spi?rev=1019&view=rev
Log:
Fix for bug #435833 to narrow relation before ref'ing it.
Modified:
trunk/pyatspi/ChangeLog
trunk/pyatspi/accessible.py
Modified: trunk/pyatspi/accessible.py
==============================================================================
--- trunk/pyatspi/accessible.py (original)
+++ trunk/pyatspi/accessible.py Wed Jun 25 17:02:44 2008
@@ -652,9 +652,9 @@
@return: The 'nth' target of this Relation.
@rtype: Accessibility.Accessible
'''
- target = self._mix_getTarget(index)
+ target = self._mix_getTarget(index)._narrow(Accessibility.Accessible)
target.ref()
- return target._narrow(Accessibility.Accessible)
+ return target
class _UnrefMixin(object):
'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]