summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-02-25 20:13:34 +0000
committerKai Huuhko <kai.huuhko@gmail.com>2013-02-25 20:13:34 +0000
commit92ccf1f6956fb8d5a54541703e8c2dc2062997c7 (patch)
treee8bb44e1268a3d4243ed9bf7cc63d000b3e35fc8
parent1ba801a38003fea6f4be3417d5163c615d7ee6b5 (diff)
python-ecore: Backport some work from 1.8 tree.HEADmaster
SVN revision: 84369
-rw-r--r--ecore/ecore.c_ecore_timer.pxi13
-rw-r--r--include/ecore/c_ecore.pxd3
2 files changed, 16 insertions, 0 deletions
diff --git a/ecore/ecore.c_ecore_timer.pxi b/ecore/ecore.c_ecore_timer.pxi
index 3c32878..dc35975 100644
--- a/ecore/ecore.c_ecore_timer.pxi
+++ b/ecore/ecore.c_ecore_timer.pxi
@@ -115,6 +115,19 @@ cdef class Timer:
115 "Resumes a frozen (paused) timer." 115 "Resumes a frozen (paused) timer."
116 ecore_timer_thaw(self.obj) 116 ecore_timer_thaw(self.obj)
117 117
118 def delay(self, double add):
119 """ Delay the execution of the timer by the given amount
120
121 @param add: seconds to add to the timer
122 @type add: double
123
124 """
125 ecore_timer_delay(self.obj, add)
126
127 def reset(self):
128 "Reset the counter of the timer"
129 ecore_timer_reset(self.obj)
130
118 def interval_set(self, double t): 131 def interval_set(self, double t):
119 "Change interval to call function." 132 "Change interval to call function."
120 self._interval = t 133 self._interval = t
diff --git a/include/ecore/c_ecore.pxd b/include/ecore/c_ecore.pxd
index 230e9db..d343077 100644
--- a/include/ecore/c_ecore.pxd
+++ b/include/ecore/c_ecore.pxd
@@ -124,6 +124,9 @@ cdef extern from "Ecore.h":
124 void *ecore_timer_del(Ecore_Timer *timer) 124 void *ecore_timer_del(Ecore_Timer *timer)
125 void ecore_timer_freeze(Ecore_Timer *timer) 125 void ecore_timer_freeze(Ecore_Timer *timer)
126 void ecore_timer_thaw(Ecore_Timer *timer) 126 void ecore_timer_thaw(Ecore_Timer *timer)
127 void ecore_timer_delay(Ecore_Timer *timer, double add)
128 void ecore_timer_reset(Ecore_Timer *timer)
129
127 void ecore_timer_interval_set(Ecore_Timer *timer, double t) 130 void ecore_timer_interval_set(Ecore_Timer *timer, double t)
128 131
129 Ecore_Animator *ecore_animator_add(Eina_Bool (*func) (void *data), void *data) 132 Ecore_Animator *ecore_animator_add(Eina_Bool (*func) (void *data), void *data)