From: perepelits.m Date: Mon, 18 Jul 2016 17:42:55 +0000 (-0700) Subject: edje: fix definition of viewport in edje-3d X-Git-Tag: upstream/1.20.0~5140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77afcb596dcbce1f3971100fd4dcbc4f3551c273;p=platform%2Fupstream%2Fefl.git 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 --- 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);