forked from enlightenment/efl
elm_genlist: throw CRI when group item insertion fails
this really needs a better solution since it results in a blank genlist item space, with the item itself typically located somewhere offscreen due to caching
This commit is contained in:
parent
43d82e567a
commit
51e86a4c0d
|
@ -6296,6 +6296,8 @@ _elm_genlist_item_insert_after(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, const
|
|||
(GL_IT(after)->type & ELM_GENLIST_ITEM_GROUP))
|
||||
sd->group_items = eina_list_append_relative
|
||||
(sd->group_items, it, after);
|
||||
else if (GL_IT(it)->type & ELM_GENLIST_ITEM_GROUP)
|
||||
CRI("GROUP ITEM INSERT FAILED: NON-GROUP ITEM PASSED AS 'after'!");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -6343,6 +6345,8 @@ _elm_genlist_item_insert_before(Eo *obj, Elm_Genlist_Data *sd, const Elm_Genlist
|
|||
(GL_IT(before)->type & ELM_GENLIST_ITEM_GROUP))
|
||||
sd->group_items =
|
||||
eina_list_prepend_relative(sd->group_items, it, before);
|
||||
else if (GL_IT(it)->type & ELM_GENLIST_ITEM_GROUP)
|
||||
CRI("GROUP ITEM INSERT FAILED: NON-GROUP ITEM PASSED AS 'after'!");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue