cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=033b438891db8f1c17380f1f571d950a860bf00b

commit 033b438891db8f1c17380f1f571d950a860bf00b
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Jul 19 15:47:51 2019 -0400

    tests/elm: fix event starter helper function to handle elm_win objects
    
    this class implements EFL_CANVAS_SCENE_INTERFACE but is not an Evas,
    so the evas must still be fetched
    
    Reviewed-by: Cedric BAIL <cedric.b...@free.fr>
    Differential Revision: https://phab.enlightenment.org/D9366
---
 src/tests/elementary/suite_helpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/elementary/suite_helpers.c 
b/src/tests/elementary/suite_helpers.c
index b9c8d3e71d..e4d7e1b45f 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -384,7 +384,7 @@ get_me_to_those_events(Eo *obj)
 {
    Evas *e = obj;
 
-   if (!efl_isa(obj, EFL_CANVAS_SCENE_INTERFACE))
+   if ((!efl_isa(obj, EFL_CANVAS_SCENE_INTERFACE)) || efl_isa(obj, 
EFL_UI_WIN_CLASS))
      e = evas_object_evas_get(obj);
    evas_smart_objects_calculate(e);
    evas_event_callback_add(e, EVAS_CALLBACK_RENDER_POST, events_norendered, 
NULL);

-- 


Reply via email to