[Genlist] evas_object_unref position is changed properly in item_select.
authorJung Chanwook <joey.jung@samsung.com>
Tue, 28 Feb 2012 02:18:53 +0000 (11:18 +0900)
committerJung Chanwook <joey.jung@samsung.com>
Tue, 28 Feb 2012 02:18:53 +0000 (11:18 +0900)
Change-Id: I205f906f391225a21f2395469ba262fce15fef85

src/lib/elm_genlist.c

index 88cbf0b..aed5d57 100644 (file)
@@ -981,7 +981,6 @@ _item_select(Elm_Genlist_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
@@ -997,6 +996,7 @@ _item_select(Elm_Genlist_Item *it)
         else
           it->wd->last_selected_item = (Elm_Object_Item *) it;
      }
+   evas_object_unref(WIDGET(it));
 }
 
 static void