From 77afcb596dcbce1f3971100fd4dcbc4f3551c273 Mon Sep 17 00:00:00 2001 From: "perepelits.m" Date: Mon, 18 Jul 2016 10:42:55 -0700 Subject: [PATCH] edje: fix definition of viewport in edje-3d We now use eo_do() and EFL_CANVAS_SCENE3D_CLASS macro to create viewport Reviewers: raster, Hermet, cedric Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D4163 Signed-off-by: Cedric Bail --- src/lib/edje/edje_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c index c370a72..50a1a3b 100644 --- a/src/lib/edje/edje_load.c +++ b/src/lib/edje/edje_load.c @@ -895,7 +895,7 @@ _edje_object_file_set_internal(Evas_Object *obj, const Eina_File *file, const ch rp->object = evas_object_image_filled_add(ed->base->evas); - Eo* viewport = evas_object_image_filled_add(ed->base->evas); + Eo* viewport = eo_add(EFL_CANVAS_SCENE3D_CLASS, ed->base->evas); evas_object_image_source_set(rp->object, viewport); evas_object_show(viewport); evas_object_event_callback_add(rp->object, EVAS_CALLBACK_DEL, _evas_object_viewport_del, viewport); -- 2.7.4