* Genlist: delete the long_press timer on _item_unrealize(), not on _item_del().

SVN revision: 43448
This commit is contained in:
Davide Andreoli 2009-11-04 11:09:02 +00:00
parent 4723717a79
commit 2ddaccbe38
1 changed files with 1 additions and 1 deletions

View File

@ -795,6 +795,7 @@ _item_unrealize(Elm_Genlist_Item *it)
Evas_Object *icon;
if (!it->realized) return;
if (it->long_timer) ecore_timer_del(it->long_timer);
evas_object_del(it->base);
it->base = NULL;
evas_object_del(it->spacer);
@ -1410,7 +1411,6 @@ static void
_item_del(Elm_Genlist_Item *it)
{
elm_genlist_item_subitems_clear(it);
if (it->long_timer) ecore_timer_del(it->long_timer);
if (it->wd->show_item == it) it->wd->show_item = NULL;
if (it->selected) it->wd->selected = eina_list_remove(it->wd->selected, it);
if (it->realized) _item_unrealize(it);