at-spi r1018 - branches/gnome-2-22/pyatspi



Author: wwalker
Date: Wed Jun 25 17:02:35 2008
New Revision: 1018
URL: http://svn.gnome.org/viewvc/at-spi?rev=1018&view=rev

Log:
Fix for bug #435833 to narrow relation before ref'ing it.


Modified:
   branches/gnome-2-22/pyatspi/ChangeLog
   branches/gnome-2-22/pyatspi/accessible.py

Modified: branches/gnome-2-22/pyatspi/accessible.py
==============================================================================
--- branches/gnome-2-22/pyatspi/accessible.py	(original)
+++ branches/gnome-2-22/pyatspi/accessible.py	Wed Jun 25 17:02:35 2008
@@ -651,9 +651,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]