summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:30:43 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commit4c405a28ca256718a5df8226d792c0c74f6d0866 (patch)
tree7dc56d17b426a514c2de506fffce358edade5c0a
parentea9399f12aaa0f94e180c21e7f7720b6d805b703 (diff)
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
-rw-r--r--src/lib/elementary/elm_genlist.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index fdd526e107..59a77e3b54 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -716,8 +716,7 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
716 716
717 e = evas_object_evas_get(WIDGET(it)); 717 e = evas_object_evas_get(WIDGET(it));
718 evas_event_freeze(e); 718 evas_event_freeze(e);
719 if (!calc) 719
720 efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
721 ELM_SAFE_FREE(it->long_timer, ecore_timer_del); 720 ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
722 721
723 _view_clear(VIEW(it), &(it->texts), NULL); 722 _view_clear(VIEW(it), &(it->texts), NULL);
@@ -726,9 +725,8 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
726 elm_wdg_item_track_cancel(EO_OBJ(it)); 725 elm_wdg_item_track_cancel(EO_OBJ(it));
727 726
728 _item_unrealize(it); 727 _item_unrealize(it);
729 728 if (!calc)
730 it->realized = EINA_FALSE; 729 efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
731 it->want_unrealize = EINA_FALSE;
732 730
733 evas_event_thaw(e); 731 evas_event_thaw(e);
734 evas_event_thaw_eval(e); 732 evas_event_thaw_eval(e);