forked from enlightenment/efl
elm genlist: Fixed garbage item issue in decorate all mode.
This fixes "elm - genlist decorate all mode on and scroll - garbage items left around." Note: Do not manipulate swallowed items. Unswallow it first then manipulate it. SVN revision: 74412
This commit is contained in:
parent
0cc6390e32
commit
a78f99241f
|
@ -4325,6 +4325,10 @@ _item_unrealize_cb(Elm_Gen_Item *it)
|
||||||
EINA_LIST_FREE (it->item->flip_content_objs, content)
|
EINA_LIST_FREE (it->item->flip_content_objs, content)
|
||||||
evas_object_del(content);
|
evas_object_del(content);
|
||||||
|
|
||||||
|
// unswallow VIEW(it) first then manipulate VIEW(it)
|
||||||
|
_decorate_item_unrealize(it);
|
||||||
|
if (GL_IT(it)->wsd->decorate_all_mode) _decorate_all_item_unrealize(it);
|
||||||
|
|
||||||
if (it->item->nocache_once || it->item->nocache)
|
if (it->item->nocache_once || it->item->nocache)
|
||||||
{
|
{
|
||||||
evas_object_del(VIEW(it));
|
evas_object_del(VIEW(it));
|
||||||
|
@ -4345,11 +4349,9 @@ _item_unrealize_cb(Elm_Gen_Item *it)
|
||||||
_item_cache_add(it);
|
_item_cache_add(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
_decorate_item_unrealize(it);
|
|
||||||
it->states = NULL;
|
it->states = NULL;
|
||||||
it->realized = EINA_FALSE;
|
it->realized = EINA_FALSE;
|
||||||
it->want_unrealize = EINA_FALSE;
|
it->want_unrealize = EINA_FALSE;
|
||||||
if (GL_IT(it)->wsd->decorate_all_mode) _decorate_all_item_unrealize(it);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue