elm/gengrid: trigger unrealize event after unsetting unrealized flag

Summary:
this flag is accessed by other components (e.g., focus) during the event
and so it must reflect the emitted event

@fix
Depends on D8989

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8990
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:29:57 -04:00
parent ba3998544b
commit 9144055498
1 changed files with 3 additions and 2 deletions

View File

@ -1255,8 +1255,7 @@ _elm_gengrid_item_unrealize(Elm_Gen_Item *it,
if (GG_IT(it)->wsd->reorder_it == it) return;
evas_event_freeze(evas_object_evas_get(WIDGET(it)));
if (!calc)
efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_UNREALIZED, EO_OBJ(it));
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
_view_clear(VIEW(it), &(it->texts), NULL);
@ -1268,6 +1267,8 @@ _elm_gengrid_item_unrealize(Elm_Gen_Item *it,
it->realized = EINA_FALSE;
it->want_unrealize = EINA_FALSE;
if (!calc)
efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_UNREALIZED, EO_OBJ(it));
{
ELM_GENGRID_DATA_GET_FROM_ITEM(it, sd);