[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[core/elementary] master 01/01: elementary/genlist,gengrid - should be cancel the track object before item view is removed.



hermet pushed a commit to branch master.

commit 0c1131933542ca0c4cd9dd33a3c560ecfd978631
Author: ChunEon Park <hermet@hermet.pe.kr>
Date:   Fri Sep 13 16:20:40 2013 +0900

    elementary/genlist,gengrid - should be cancel the track object before item view is removed.
---
 src/lib/elm_gengrid.c | 4 ++--
 src/lib/elm_genlist.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 913dc50..cd7d61f 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -544,13 +544,13 @@ _elm_gengrid_item_unrealize(Elm_Gen_Item *it,
    EINA_LIST_FREE(it->content_objs, content)
      evas_object_del(content);
 
+   elm_widget_item_track_cancel(it);
+
    it->unrealize_cb(it);
 
    it->realized = EINA_FALSE;
    it->want_unrealize = EINA_FALSE;
 
-   elm_widget_item_track_cancel(it);
-
    evas_event_thaw(evas_object_evas_get(WIDGET(it)));
    evas_event_thaw_eval(evas_object_evas_get(WIDGET(it)));
 }
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 5c1a756..bf24d98 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -343,13 +343,13 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
 
    ELM_SAFE_FREE(it->item_focus_chain, eina_list_free);
 
+   elm_widget_item_track_cancel(it);
+
    it->unrealize_cb(it);
 
    it->realized = EINA_FALSE;
    it->want_unrealize = EINA_FALSE;
 
-   elm_widget_item_track_cancel(it);
-
    evas_event_thaw(evas_object_evas_get(WIDGET(it)));
    evas_event_thaw_eval(evas_object_evas_get(WIDGET(it)));
 }

--