From 7e43cd1abd51892c4758b34d5940d8c278c60719 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Thu, 15 Mar 2012 11:24:20 +0000 Subject: [PATCH] elm genlist: Fixed evas_object_unref position problem. Patch by Chanwook Jung On Thu, Mar 15, 2012 at 7:25 PM, chanwook jung wrote: > Dear all, > > This patch is evas_object_unref position change properly in _item_select. > > Thanks > Joey SVN revision: 69373 --- legacy/elementary/src/lib/elm_genlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c index f24b67ea3b..3c22e955e1 100644 --- a/legacy/elementary/src/lib/elm_genlist.c +++ b/legacy/elementary/src/lib/elm_genlist.c @@ -3529,7 +3529,6 @@ _item_select(Elm_Gen_Item *it) evas_object_smart_callback_call(WIDGET(it), SIG_SELECTED, it); it->walking--; it->wd->walking--; - evas_object_unref(WIDGET(it)); if ((it->wd->clear_me) && (!it->wd->walking)) _elm_genlist_clear(WIDGET(it), EINA_TRUE); else @@ -3545,6 +3544,7 @@ _item_select(Elm_Gen_Item *it) else it->wd->last_selected_item = (Elm_Object_Item *)it; } + evas_object_unref(WIDGET(it)); } static Evas_Object *