jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ee35905195db0730f68c9613e9ceeb57e89267e9

commit ee35905195db0730f68c9613e9ceeb57e89267e9
Author: Daniel Zaoui <daniel.za...@samsung.com>
Date:   Mon Mar 21 09:01:15 2016 +0200

    Genlist: fix wrong use of Eo item
    
    The Eo item was given as parameter of a function expecting its item data.
    
    @fix
---
 src/lib/elm_genlist.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index ba152c7..3af6491 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);
           }
 

-- 


Reply via email to