diff --git a/src/core/lv_event.h b/src/core/lv_event.h index 71a897e62b..3915db0f9d 100644 --- a/src/core/lv_event.h +++ b/src/core/lv_event.h @@ -221,12 +221,12 @@ bool lv_obj_remove_event_cb(struct _lv_obj_t * obj, lv_event_cb_t event_cb); /** * Remove an event handler function with a specific user_data from an object. - * @param obj pointer to an object - * @param event_cb the event function to remove, or `NULL` only `user_data` matters. - * @param user_data the user_data specified in ::lv_obj_add_event_cb - * @return true if any event handlers were removed + * @param obj pointer to an object + * @param event_cb the event function to remove, or `NULL` only `user_data` matters. + * @param event_user_data the user_data specified in ::lv_obj_add_event_cb + * @return true if any event handlers were removed */ -bool lv_obj_remove_event_cb_with_user_data(struct _lv_obj_t * obj, lv_event_cb_t event_cb, const void * user_data); +bool lv_obj_remove_event_cb_with_user_data(struct _lv_obj_t * obj, lv_event_cb_t event_cb, const void * event_user_data); /** * DEPRACTED because doesn't work if multiple event handlers are added to an object.