zmike pushed a commit to branch efl-1.22. http://git.enlightenment.org/core/efl.git/commit/?id=6045a958f01ef1d34a0e133ec3890c9300853112
commit 6045a958f01ef1d34a0e133ec3890c9300853112 Author: Marcel Hollerbach <[email protected]> Date: Wed Apr 24 19:12:15 2019 +0200 efl_ui_grid: add an error to grid grid only accepts grid items, not general widgets. If a wrong type is passed in, a error should be printed. Reviewed-by: SangHyeon Jade Lee <[email protected]> Differential Revision: https://phab.enlightenment.org/D8704 --- src/lib/elementary/efl_ui_grid.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_grid.c b/src/lib/elementary/efl_ui_grid.c index a97b5089d6..3ea01c1cf7 100644 --- a/src/lib/elementary/efl_ui_grid.c +++ b/src/lib/elementary/efl_ui_grid.c @@ -954,7 +954,11 @@ _grid_item_deleted(void *data, const Efl_Event *event) static Eina_Bool _grid_item_process(Eo *obj, Efl_Ui_Grid_Data *pd, EINA_UNUSED Efl_Ui_Grid_Item *it) { - EFL_UI_GRID_ITEM_CHECK_OR_RETURN(it, EINA_FALSE); + if (!efl_isa(it, EFL_UI_GRID_ITEM_CLASS)) + { + ERR("Item must be of type EFL_UI_GRID_ITEM_CLASS"); + return EINA_FALSE; + } if (eina_list_data_find(pd->items, it)) { --
