From 15ce2b267b99bb4cb482e8e34e5c7d0e057482cf Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Mon, 21 Mar 2016 09:01:15 +0200 Subject: [PATCH] Genlist: fix wrong use of Eo item The Eo item was given as parameter of a function expecting its item data. @fix --- legacy/elementary/src/lib/elm_genlist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c index ba152c73a1..3af6491139 100644 --- a/legacy/elementary/src/lib/elm_genlist.c +++ b/legacy/elementary/src/lib/elm_genlist.c @@ -7802,7 +7802,6 @@ _elm_genlist_decorate_mode_set(Eo *obj, Elm_Genlist_Data *sd, Eina_Bool decorate { Elm_Object_Item *eo_it; Eina_List *list; - Elm_Object_Item *deco_it; decorated = !!decorated; if (sd->decorate_all_mode == decorated) return; @@ -7828,12 +7827,13 @@ _elm_genlist_decorate_mode_set(Eo *obj, Elm_Genlist_Data *sd, Eina_Bool decorate else { // unset decorated item - deco_it = elm_genlist_decorated_item_get(obj); + Elm_Object_Item *deco_eo_it = elm_genlist_decorated_item_get(obj); + ELM_GENLIST_ITEM_DATA_GET(deco_eo_it, deco_it); if (deco_it) { elm_genlist_item_decorate_mode_set - (deco_it, elm_genlist_item_decorate_mode_get - (deco_it), EINA_FALSE); + (deco_eo_it, elm_genlist_item_decorate_mode_get + (deco_eo_it), EINA_FALSE); _decorate_item_finished_signal_cb(deco_it, obj, NULL, NULL); }