forked from enlightenment/efl
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:
parent
ebff48bf92
commit
394433f438
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue