elm/genlist: 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 D8993

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8994
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:30:43 -04:00
parent ea9399f12a
commit 4c405a28ca
1 changed files with 3 additions and 5 deletions

View File

@ -716,8 +716,7 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
e = evas_object_evas_get(WIDGET(it));
evas_event_freeze(e);
if (!calc)
efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
_view_clear(VIEW(it), &(it->texts), NULL);
@ -726,9 +725,8 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
elm_wdg_item_track_cancel(EO_OBJ(it));
_item_unrealize(it);
it->realized = EINA_FALSE;
it->want_unrealize = EINA_FALSE;
if (!calc)
efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
evas_event_thaw(e);
evas_event_thaw_eval(e);