forked from enlightenment/efl
elm - genlist/grid - call realized/unrealized item func cb after eo cb
This commit is contained in:
parent
b158abfabb
commit
534457c51d
|
@ -1265,8 +1265,8 @@ _elm_gengrid_item_unrealize(Elm_Gen_Item *it,
|
|||
|
||||
if (!calc)
|
||||
{
|
||||
if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
|
||||
efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_UNREALIZED, EO_OBJ(it));
|
||||
if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
|
||||
}
|
||||
|
||||
it->unrealize_cb(it);
|
||||
|
@ -1976,9 +1976,9 @@ _item_place(Elm_Gen_Item *it,
|
|||
if (!was_realized)
|
||||
{
|
||||
_elm_gengrid_item_index_update(it);
|
||||
if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
|
||||
efl_event_callback_legacy_call
|
||||
(WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
|
||||
if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
|
||||
_flush_focus_on_realization(WIDGET(it), it);
|
||||
}
|
||||
if (it->parent)
|
||||
|
@ -2183,9 +2183,9 @@ _group_item_place(Elm_Gengrid_Pan_Data *psd)
|
|||
if (!was_realized)
|
||||
{
|
||||
_elm_gengrid_item_index_update(it);
|
||||
if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
|
||||
efl_event_callback_legacy_call
|
||||
(WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
|
||||
if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
|
||||
_flush_focus_on_realization(WIDGET(it), it);
|
||||
}
|
||||
evas_object_geometry_set(VIEW(it), GG_IT(it)->gx, GG_IT(it)->gy,
|
||||
|
|
|
@ -717,8 +717,8 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
|
|||
|
||||
if (!calc)
|
||||
{
|
||||
if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
|
||||
efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
|
||||
if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
|
||||
}
|
||||
|
||||
_item_unrealize(it);
|
||||
|
@ -1669,7 +1669,8 @@ _item_cache_add(Elm_Gen_Item *it, Eina_List *contents)
|
|||
efl_wref_del(it->base->view, &it->base->view);
|
||||
VIEW(it) = NULL;
|
||||
evas_object_hide(itc->base_view);
|
||||
evas_object_move(itc->base_view, -9999, -9999);
|
||||
// lower eocalloverhead - no need to do this
|
||||
// evas_object_move(itc->base_view, -9999, -9999);
|
||||
|
||||
_item_cache_clean(sd);
|
||||
|
||||
|
@ -2056,8 +2057,8 @@ _item_realize(Elm_Gen_Item *it, const int index, Eina_Bool calc)
|
|||
|
||||
}
|
||||
|
||||
if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
|
||||
efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_REALIZED, EO_OBJ(it));
|
||||
if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
|
||||
}
|
||||
|
||||
//Send a signal so that an item changes its style according to its expand depth
|
||||
|
|
Loading…
Reference in New Issue