if it is available (bug #492469).
* accessible.py (_makeExceptionHandler._inner): Revert patch from
bug #490202. This was the wrong fix. Objects that are returned
from methods are already reffed.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@965
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2007-11-01 Eitan Isaacson <eitan@ascender.com>
+
+ * event.py (Event.__init__): Ref() the host_application attribute
+ if it is available (bug #492469).
+ * accessible.py (_makeExceptionHandler._inner): Revert patch from
+ bug #490202. This was the wrong fix. Objects that are returned
+ from methods are already reffed.
+
2007-10-30 Eitan Isaacson <eitan@ascender.com>
* accessible.py (_AccessibleMixin.__del__): Catch TypeError
def _inner(self, *args, **kwargs):
try:
# try calling the original func
- rv = func(self, *args, **kwargs)
- if isinstance(rv, ORBit.CORBA.Object): rv.ref()
- return rv
+ return func(self, *args, **kwargs)
except ORBit.CORBA.NO_IMPLEMENT, e:
# raise Python exception
raise NotImplementedError(e)
self.any_data.ref()
except AttributeError:
pass
+ try:
+ # if we received a host application, be sure to increment the ref count
+ self.host_application.ref()
+ except AttributeError:
+ pass
def __str__(self):
'''