summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-21 09:01:15 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-21 09:01:15 +0200
commitee35905195db0730f68c9613e9ceeb57e89267e9 (patch)
treef09c23a3040b227186be77621bdbc790ade12e88
parent65e075b65a2c3508f3dbbeb8012ead0e32e2f4f9 (diff)
downloadelementary-ee35905195db0730f68c9613e9ceeb57e89267e9.tar.gz
Genlist: fix wrong use of Eo item
The Eo item was given as parameter of a function expecting its item data. @fix
-rw-r--r--src/lib/elm_genlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index ba152c73a..3af649113 100644
--- a/src/lib/elm_genlist.c
+++ b/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);
}