zmike pushed a commit to branch efl-1.22.

http://git.enlightenment.org/core/efl.git/commit/?id=0646b9eaf728848a84346abf54be5b7119464077

commit 0646b9eaf728848a84346abf54be5b7119464077
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed May 29 09:30:43 2019 -0400

    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
---
 src/lib/elementary/elm_genlist.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index d74466dc58..95d4841322 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,
 
    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);

-- 


Reply via email to