summaryrefslogtreecommitdiff
path: root/efl/ecore
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-04-18 20:43:34 +0000
committerKai Huuhko <kai.huuhko@gmail.com>2013-04-22 20:20:20 +0300
commitb3b87fe928146d8da797c1e9127da9748af79d27 (patch)
treead470bddf1dd1e8ea09d3ade008f23d2512e6d2f /efl/ecore
parent898f32371a2d41ec444828ac79c94316bb9bf5c0 (diff)
Ecore: Small optimization to the task_cb function call.
Diffstat (limited to 'efl/ecore')
-rw-r--r--efl/ecore/efl.ecore.pyx2
-rw-r--r--efl/ecore/efl.ecore_animator.pxi2
-rw-r--r--efl/ecore/efl.ecore_idler.pxi2
-rw-r--r--efl/ecore/efl.ecore_timer.pxi2
4 files changed, 4 insertions, 4 deletions
diff --git a/efl/ecore/efl.ecore.pyx b/efl/ecore/efl.ecore.pyx
index a74e8bf..fbd8204 100644
--- a/efl/ecore/efl.ecore.pyx
+++ b/efl/ecore/efl.ecore.pyx
@@ -55,7 +55,7 @@ cdef Eina_Bool _ecore_task_cb(void *data) with gil:
55 cdef Eina_Bool ret 55 cdef Eina_Bool ret
56 56
57 try: 57 try:
58 ret = bool(obj._task_exec()) 58 ret = obj._task_exec()
59 except Exception, e: 59 except Exception, e:
60 traceback.print_exc() 60 traceback.print_exc()
61 ret = 0 61 ret = 0
diff --git a/efl/ecore/efl.ecore_animator.pxi b/efl/ecore/efl.ecore_animator.pxi
index cbf5824..862a1e0 100644
--- a/efl/ecore/efl.ecore_animator.pxi
+++ b/efl/ecore/efl.ecore_animator.pxi
@@ -61,7 +61,7 @@ cdef class Animator(Eo):
61 return "%s Animator(func=%s, args=%s, kargs=%s)" % (Eo.__repr__(self), 61 return "%s Animator(func=%s, args=%s, kargs=%s)" % (Eo.__repr__(self),
62 self.func, self.args, self.kargs) 62 self.func, self.args, self.kargs)
63 63
64 cpdef object _task_exec(self): 64 cpdef bint _task_exec(self):
65 return self.func(*self.args, **self.kargs) 65 return self.func(*self.args, **self.kargs)
66 66
67 def delete(self): 67 def delete(self):
diff --git a/efl/ecore/efl.ecore_idler.pxi b/efl/ecore/efl.ecore_idler.pxi
index 1b83fae..1e18f78 100644
--- a/efl/ecore/efl.ecore_idler.pxi
+++ b/efl/ecore/efl.ecore_idler.pxi
@@ -59,7 +59,7 @@ cdef class Idler(Eo):
59 return "%s Idler(func=%s, args=%s, kargs=%s)" % (Eo.__repr__(self), 59 return "%s Idler(func=%s, args=%s, kargs=%s)" % (Eo.__repr__(self),
60 self.func, self.args, self.kargs) 60 self.func, self.args, self.kargs)
61 61
62 cpdef object _task_exec(self): 62 cpdef bint _task_exec(self):
63 return self.func(*self.args, **self.kargs) 63 return self.func(*self.args, **self.kargs)
64 64
65 def delete(self): 65 def delete(self):
diff --git a/efl/ecore/efl.ecore_timer.pxi b/efl/ecore/efl.ecore_timer.pxi
index 1bb814b..a6450a2 100644
--- a/efl/ecore/efl.ecore_timer.pxi
+++ b/efl/ecore/efl.ecore_timer.pxi
@@ -62,7 +62,7 @@ cdef class Timer(Eo):
62 self.interval if self.obj else -1.0, 62 self.interval if self.obj else -1.0,
63 self.func, self.args, self.kargs) 63 self.func, self.args, self.kargs)
64 64
65 cpdef object _task_exec(self): 65 cpdef bint _task_exec(self):
66 return self.func(*self.args, **self.kargs) 66 return self.func(*self.args, **self.kargs)
67 67
68 def delete(self): 68 def delete(self):