diff --git a/legacy/ecore/doc/examples.dox b/legacy/ecore/doc/examples.dox index f8e0924c49..f455d9c27d 100644 --- a/legacy/ecore/doc/examples.dox +++ b/legacy/ecore/doc/examples.dox @@ -75,10 +75,8 @@ * will check if the idler was called more than 100 times already @c * (ctxt->count > 100), and will delete the idler, idle enterer and exiter, the * timer (if it still exists), and request that the main loop stop running. Then - * it returns @ref ECORE_CALLBACK_CANCEL to indicate that the event handler - * shouldn't be called anymore (this will delete it). If the @c count is still - * smaller than 100, the event callback just returns @ref ECORE_CALLBACK_RENEW - * and will keep being called every time that this event type is called. + * it returns @ref ECORE_CALLBACK_DONE to indicate that the event shouldn't be + * handled by any other callback. * * Finally, we add a callback to the timer, that will just print a message when * it is called, and this will happen only once (@ref ECORE_CALLBACK_CANCEL is diff --git a/legacy/ecore/src/examples/ecore_idler_example.c b/legacy/ecore/src/examples/ecore_idler_example.c index c6d08982de..d19fce33bd 100644 --- a/legacy/ecore/src/examples/ecore_idler_example.c +++ b/legacy/ecore/src/examples/ecore_idler_example.c @@ -68,10 +68,9 @@ _event_handler_cb(void *data, int type, void *event) // event callback } ecore_main_loop_quit(); - return ECORE_CALLBACK_CANCEL; // same as EINA_FALSE } - return ECORE_CALLBACK_RENEW; // same as EINA_TRUE + return ECORE_CALLBACK_DONE; // same as EINA_FALSE } static Eina_Bool