aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-08-30 00:00:17 -0700
committerapache <apache@e5-web1.enlightenment.org>2018-08-30 00:00:17 -0700
commit860da8b5f92320b082c7355fea7f3392cffff912 (patch)
tree372096e4d6122e3ad8aeb6616731aaad15198876
parentWiki page hello-world-gui-cs.md changed with summary [Corrected text alignmen... (diff)
downloadwww-content-860da8b5f92320b082c7355fea7f3392cffff912.tar.gz
Wiki page events.md changed with summary [typos] by Xavi Artigas
-rw-r--r--pages/develop/guides/c/core/events.md.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/develop/guides/c/core/events.md.txt b/pages/develop/guides/c/core/events.md.txt
index f4e12519a..35a66e7e0 100644
--- a/pages/develop/guides/c/core/events.md.txt
+++ b/pages/develop/guides/c/core/events.md.txt
@@ -25,7 +25,7 @@ To register a callback method to be called when an object emits a given event us
efl_event_callback_add(object, event, callback, data);
```
-Subsitute *object* for any ``Eo *`` or derived object and *event* for the identifier of the event (such as ``EFL_LOOP_EVENT_POLL_HIGH`` or ``EFL_LOOP_TIMER_EVENT_TICK``). Set *callback* to the method to be called when the event occurs and *data* to any data you want to pass to your callback (if you have no need of this use ``NULL``).
+Substitute *object* for any ``Eo *`` or derived object and *event* for the identifier of the event (such as ``EFL_LOOP_EVENT_POLL_HIGH`` or ``EFL_LOOP_TIMER_EVENT_TICK``). Set *callback* to the method to be called when the event occurs and *data* to any data you want to pass to your callback (if you have no need of this use ``NULL``).
The method signature for the callback is:
@@ -52,7 +52,7 @@ efl_event_callback_del(object, event, callback, data);
The parameters here have the same meaning as for ``efl_event_callback_add()``. Note that in order to unregister the callback you have to provide **the same parameters** you used to register it. This is because you can register different callbacks to the same event or even the same callback with different *data*.
> **NOTE:**
-> Registering and unregistering callbacks is an resource-itensive process. If you perform these operations continuously on several callbacks at the same time do so in a batch as this is more efficient. You can use ``efl_even_callback_array_add()`` and ``efl_even_callback_array_del()`` to accomplish this. Remember however that you can't unregister an individual callback which has been registered in a batch. They must all be unregistered together.
+> Registering and unregistering callbacks is an resource-intensive process. If you perform these operations continuously on several callbacks at the same time do so in a batch as this is more efficient. You can use ``efl_even_callback_array_add()`` and ``efl_even_callback_array_del()`` to accomplish this. Remember however that you can't unregister an individual callback which has been registered in a batch. They must all be unregistered together.
Below is an example code snippet based on [reference/c/core/src/core_event.c](https://git.enlightenment.org/tools/examples.git/tree/reference/c/core/src/core_event.c):