forked from enlightenment/efl
elm genlist: Refactored flip mode. Patch by Hyoyoung Chang
<hyoyoung@gmail.com> On Wed, Apr 4, 2012 at 9:23 PM, Hyoyoung Chang <hyoyoung@gmail.com> wrote: > Dear all, > > in genlist flip mode, a item shares its content and flip content. > it's split flip content patch. > > Thanks. SVN revision: 69941
This commit is contained in:
parent
b7c213af86
commit
676712d8a6
|
@ -54,6 +54,7 @@ struct Elm_Gen_Item_Type
|
|||
Elm_Genlist_Item_Type type;
|
||||
Eina_List *deco_it_texts, *deco_it_contents, *deco_it_states, *deco_it_content_objs;
|
||||
Eina_List *deco_all_textss, *deco_all_contents, *deco_all_states, *deco_all_content_objs;
|
||||
Eina_List *flip_contents, *flip_content_objs;
|
||||
Ecore_Timer *swipe_timer;
|
||||
Evas_Coord scrl_x, scrl_y, old_scrl_y;
|
||||
|
||||
|
@ -2138,7 +2139,8 @@ _item_realize(Elm_Gen_Item *it,
|
|||
if (it->flipped)
|
||||
{
|
||||
edje_object_signal_emit(VIEW(it), "elm,state,flip,enabled", "elm");
|
||||
it->content_objs = _item_flips_realize(it, VIEW(it), &it->contents);
|
||||
it->item->flip_content_objs =
|
||||
_item_flips_realize(it, VIEW(it), &it->item->flip_contents);
|
||||
}
|
||||
|
||||
if (!it->item->mincalcd)
|
||||
|
@ -5795,10 +5797,17 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
|
|||
it->contents = NULL;
|
||||
elm_widget_stringlist_free(it->states);
|
||||
it->states = NULL;
|
||||
|
||||
EINA_LIST_FREE(it->content_objs, content)
|
||||
evas_object_del(content);
|
||||
|
||||
if (it->flipped)
|
||||
{
|
||||
elm_widget_stringlist_free(it->item->flip_contents);
|
||||
it->item->flip_contents = NULL;
|
||||
EINA_LIST_FREE(it->item->flip_content_objs, content)
|
||||
evas_object_del(content);
|
||||
}
|
||||
|
||||
it->unrealize_cb(it);
|
||||
|
||||
it->realized = EINA_FALSE;
|
||||
|
|
Loading…
Reference in New Issue