jackdanielz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=7395086725fd19ea93353319e49b3afe1535e799
commit 7395086725fd19ea93353319e49b3afe1535e799 Author: Daniel Zaoui <[email protected]> Date: Sun Nov 23 09:18:42 2014 +0200 Genlist: Fix previous commit. The items of an item is a list of Elm_Object_Item and not of Elm_Gen_Item. Sorry @zmike ;-) Fixes T1859 Another fix has been added in this commit, related to relative items. --- src/lib/elm_genlist.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 4cd9c22..39a813a 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -3426,7 +3426,7 @@ _item_del(Elm_Gen_Item *it) evas_event_freeze(evas_object_evas_get(obj)); // FIXME: relative will be better to be fixed. it is too harsh. - if (it->item->rel) + if (it->item->rel && it->item->rel->item) it->item->rel->item->rel_revs = eina_list_remove(it->item->rel->item->rel_revs, it); if (it->item->rel_revs) @@ -6069,6 +6069,7 @@ _elm_genlist_item_sorted_insert(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, const if (it->parent) { + Elm_Object_Item *eo_rel = NULL; Eina_List *l; int cmp_result; @@ -6078,7 +6079,8 @@ _elm_genlist_item_sorted_insert(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, const if (l) { - rel = eina_list_data_get(l); + eo_rel = eina_list_data_get(l); + rel = eo_data_scope_get(eo_rel, ELM_GENLIST_ITEM_CLASS); if (cmp_result >= 0) { --
