This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch events
in repository www-content.
View the commit online.
commit e8c7d6c648c80de5c062f69235ef4e2492c8c5f7
Author: tangcl <tan...@88.com>
AuthorDate: Thu Jan 11 22:20:20 2024 +0800
EFL_LOOP_TIMER_EVENT_TICK -> EFL_LOOP_TIMER_EVENT_TIMER_TICK
---
pages/develop/guides/c/core/events.md.txt | 2 +-
pages/develop/guides/c/core/main-loop.md.txt | 4 ++--
pages/develop/guides/c/porting-guide.md.txt | 2 +-
pages/develop/tutorials/c/lifecycle.md.txt | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/pages/develop/guides/c/core/events.md.txt b/pages/develop/guides/c/core/events.md.txt
index 742acfaa7..1913eb655 100644
--- a/pages/develop/guides/c/core/events.md.txt
+++ b/pages/develop/guides/c/core/events.md.txt
@@ -71,7 +71,7 @@ setup()
efl_add(EFL_LOOP_TIMER_CLASS, mainloop,
efl_name_set(efl_added, "timer2"),
efl_loop_timer_interval_set(efl_added, .1),
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, callback, mainloop));
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, callback, mainloop));
[...]
}
```
diff --git a/pages/develop/guides/c/core/main-loop.md.txt b/pages/develop/guides/c/core/main-loop.md.txt
index aed0a4a69..fe0ca5bd1 100644
--- a/pages/develop/guides/c/core/main-loop.md.txt
+++ b/pages/develop/guides/c/core/main-loop.md.txt
@@ -49,10 +49,10 @@ If you want to manually destroy a timer use the regular ``efl_unref()`` or ``efl
### The Timer Callback ###
-Register the callback using ``efl_event_callback_add()`` and the ``EFL_LOOP_TIMER_EVENT_TICK`` event as explained in the [Events Programming Guide](events.md).
+Register the callback using ``efl_event_callback_add()`` and the ``EFL_LOOP_TIMER_EVENT_TIMER_TICK`` event as explained in the [Events Programming Guide](events.md).
```c
-efl_event_callback_add(timer_object, EFL_LOOP_TIMER_EVENT_TICK, _timer_cb, NULL);
+efl_event_callback_add(timer_object, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _timer_cb, NULL);
```
The callback has the usual event handler signature:
diff --git a/pages/develop/guides/c/porting-guide.md.txt b/pages/develop/guides/c/porting-guide.md.txt
index 096171013..cfb1b7263 100644
--- a/pages/develop/guides/c/porting-guide.md.txt
+++ b/pages/develop/guides/c/porting-guide.md.txt
@@ -24,7 +24,7 @@ Efl_Loop *main_loop = event->object
Programming guides: [Unified EFL](/develop/guides/c/core/main-loop.md#Timers), [Legacy EFL](/develop/legacy/program_guide/main_loop/timers)
* Timers are now regular Eo objects created with ``efl_add(EFL_LOOP_TIMER_CLASS, ...)`` and destroyed with ``efl_unref()``.
-* The timer callback is registered with ``efl_event_callback_add(timer_object, EFL_LOOP_TIMER_EVENT_TICK, ...)``.
+* The timer callback is registered with ``efl_event_callback_add(timer_object, EFL_LOOP_TIMER_EVENT_TIMER_TICK, ...)``.
* Timers are always periodic. The callback does not return ``ECORE_CALLBACK_RENEW`` or ``ECORE_CALLBACK_CANCEL`` anymore. If you want a one-shot timer, remove it from the callback after it has fired once.
* ``ecore_timer_interval_set/get()`` -> ``efl_loop_timer_interval_set/get()``
* ``ecore_timer_pending_get()`` -> ``efl_loop_timer_pending_get()``
diff --git a/pages/develop/tutorials/c/lifecycle.md.txt b/pages/develop/tutorials/c/lifecycle.md.txt
index 8a2a277f9..9dc478339 100644
--- a/pages/develop/tutorials/c/lifecycle.md.txt
+++ b/pages/develop/tutorials/c/lifecycle.md.txt
@@ -109,7 +109,7 @@ Now create a timer at the end of ``efl_main()`` that will periodically call the
```c
[...]
efl_add(EFL_LOOP_TIMER_CLASS, ev->object,
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, _lifecycle_simulation, ev->object),
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _lifecycle_simulation, ev->object),
efl_loop_timer_interval_set(efl_added, 1.0));
```
@@ -184,7 +184,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
// The timer function will trigger the chain of simulated events to show
// how an app could respond to system lifecycle events.
efl_add(EFL_LOOP_TIMER_CLASS, ev->object,
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, _lifecycle_simulation, ev->object),
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _lifecycle_simulation, ev->object),
efl_loop_timer_interval_set(efl_added, 1.0));
}
EFL_MAIN_EX()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.