From 394433f438723b7bfec09b668adaa4888b317cd9 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Wed, 22 Jun 2011 22:56:36 +0000 Subject: [PATCH] ecore/idler - Fix wrong explanation! Event callbacks don't stop being called by returning false, but won't allow other callbacks to handle that event. SVN revision: 60611 --- legacy/ecore/doc/examples.dox | 6 ++---- legacy/ecore/src/examples/ecore_idler_example.c | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) 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