aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-08-14 10:35:58 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-08-14 10:35:58 +0200
commit380e7a58ffa18501202f960d35471b5a683dd35f (patch)
treea01c2ea21d8a0605f025ef3018d7549aa7895849
parentSmall Timer docs improvement (diff)
downloadpython-efl-380e7a58ffa18501202f960d35471b5a683dd35f.tar.gz
ecore.FdHandler: implement is_deleted for consistency with other classes
-rw-r--r--efl/ecore/efl.ecore_fd_handler.pxi11
1 files changed, 11 insertions, 0 deletions
diff --git a/efl/ecore/efl.ecore_fd_handler.pxi b/efl/ecore/efl.ecore_fd_handler.pxi
index cf31b52..fd743e5 100644
--- a/efl/ecore/efl.ecore_fd_handler.pxi
+++ b/efl/ecore/efl.ecore_fd_handler.pxi
@@ -144,6 +144,17 @@ cdef class FdHandler(object):
cdef object _exec(self):
return self.func(self, *self.args, **self.kargs)
+ def is_deleted(self):
+ """Check if the object has been deleted thus leaving the object shallow.
+
+ :return: True if the object has been deleted yet, False otherwise.
+ :rtype: bool
+
+ .. versionadded:: 1.18
+
+ """
+ return bool(self.obj == NULL)
+
def delete(self):
"""Stop callback emission and free internal resources."""
if self.obj != NULL: