summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-19 15:47:51 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-07-19 15:05:02 -0700
commit033b438891db8f1c17380f1f571d950a860bf00b (patch)
treea748357b71224a1df3afa33d8c6a82c4f2dfbee1
parentdc1630d49668acc305538fb4ec3fc433fb79d54e (diff)
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.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9366
-rw-r--r--src/tests/elementary/suite_helpers.c2
1 files changed, 1 insertions, 1 deletions
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)
384{ 384{
385 Evas *e = obj; 385 Evas *e = obj;
386 386
387 if (!efl_isa(obj, EFL_CANVAS_SCENE_INTERFACE)) 387 if ((!efl_isa(obj, EFL_CANVAS_SCENE_INTERFACE)) || efl_isa(obj, EFL_UI_WIN_CLASS))
388 e = evas_object_evas_get(obj); 388 e = evas_object_evas_get(obj);
389 evas_smart_objects_calculate(e); 389 evas_smart_objects_calculate(e);
390 evas_event_callback_add(e, EVAS_CALLBACK_RENDER_POST, events_norendered, NULL); 390 evas_event_callback_add(e, EVAS_CALLBACK_RENDER_POST, events_norendered, NULL);