---
 python-ecore/ecore/ecore.c_ecore_timer.pxi |    8 ++++++++
 python-ecore/include/ecore/c_ecore.pxd     |    2 ++
 2 files changed, 10 insertions(+)

diff --git a/python-ecore/ecore/ecore.c_ecore_timer.pxi b/python-ecore/ecore/ecore.c_ecore_timer.pxi
index 583bddd..3c32878 100644
--- a/python-ecore/ecore/ecore.c_ecore_timer.pxi
+++ b/python-ecore/ecore/ecore.c_ecore_timer.pxi
@@ -107,6 +107,14 @@ cdef class Timer:
         "Alias for L{delete()}."
         self.delete()
 
+    def freeze(self):
+        "Pauses a running timer."
+        ecore_timer_freeze(self.obj)
+
+    def thaw(self):
+        "Resumes a frozen (paused) timer."
+        ecore_timer_thaw(self.obj)
+
     def interval_set(self, double t):
         "Change interval to call function."
         self._interval = t
diff --git a/python-ecore/include/ecore/c_ecore.pxd b/python-ecore/include/ecore/c_ecore.pxd
index 856d934..230e9db 100644
--- a/python-ecore/include/ecore/c_ecore.pxd
+++ b/python-ecore/include/ecore/c_ecore.pxd
@@ -122,6 +122,8 @@ cdef extern from "Ecore.h":
 
     Ecore_Timer *ecore_timer_add(double t, Eina_Bool (*func) (void *data), void *data)
     void *ecore_timer_del(Ecore_Timer *timer)
+    void ecore_timer_freeze(Ecore_Timer *timer)
+    void ecore_timer_thaw(Ecore_Timer *timer)
     void ecore_timer_interval_set(Ecore_Timer *timer, double t)
 
     Ecore_Animator *ecore_animator_add(Eina_Bool (*func) (void *data), void *data)
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to