at-spi r1020 - branches/gnome-2-22/pyatspi
- From: wwalker svn gnome org
- To: svn-commits-list gnome org
- Subject: at-spi r1020 - branches/gnome-2-22/pyatspi
- Date: Thu, 26 Jun 2008 21:31:51 +0000 (UTC)
Author: wwalker
Date: Thu Jun 26 21:31:51 2008
New Revision: 1020
URL: http://svn.gnome.org/viewvc/at-spi?rev=1020&view=rev
Log:
refix for bug #435833
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 Thu Jun 26 21:31:51 2008
@@ -651,7 +651,9 @@
@return: The 'nth' target of this Relation.
@rtype: Accessibility.Accessible
'''
- target = self._mix_getTarget(index)._narrow(Accessibility.Accessible)
+ target = self._mix_getTarget(index)
+ if not isinstance(target, Accessibility.Accessible):
+ target = target._narrow(Accessibility.Accessible)
target.ref()
return target
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]