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
This commit is contained in:
Rafael Antognolli 2011-06-22 22:56:36 +00:00
parent ebff48bf92
commit 394433f438
2 changed files with 3 additions and 6 deletions

View File

@ -75,10 +75,8 @@
* will check if the idler was called more than 100 times already @c * 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 * (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 * 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 * it returns @ref ECORE_CALLBACK_DONE to indicate that the event shouldn't be
* shouldn't be called anymore (this will delete it). If the @c count is still * handled by any other callback.
* 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.
* *
* Finally, we add a callback to the timer, that will just print a message when * 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 * it is called, and this will happen only once (@ref ECORE_CALLBACK_CANCEL is

View File

@ -68,10 +68,9 @@ _event_handler_cb(void *data, int type, void *event) // event callback
} }
ecore_main_loop_quit(); 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 static Eina_Bool