aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2015-06-11 09:58:09 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-06-11 09:58:13 +0200
commited01a32c136aaba8fb23a12afaf334b4c47fc62e (patch)
tree55b460bae129537eb90928c5e0174a8ebc246a29 /src/lib/evas/canvas/evas_object_image.c
parentevas - eo canvas events - move viewport to last to match enums in legacy (diff)
downloadefl-ed01a32c136aaba8fb23a12afaf334b4c47fc62e.tar.gz
evas: move evas_object_inject to super's ctor
Summary: As we always call evas_object_inject in every Evas Object's ctcor, it seems sensible to move this repeated bit of code to the super (Evas.Object). Test Plan: Expedite, Elementary_Test and pretty much everything Reviewers: cedric, raster Subscribers: JackDanielZ, cedric Differential Revision: https://phab.enlightenment.org/D2665 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_object_image.c')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index b3e067cf41..f5535fe3bd 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -346,17 +346,11 @@ EOLIAN static Eo *
_evas_image_eo_base_constructor(Eo *eo_obj, Evas_Image_Data *o)
{
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
- Evas *eo_e;
- Eo *parent = NULL;
Evas_Colorspace cspace;
eo_obj = eo_do_super_ret(eo_obj, MY_CLASS, eo_obj, eo_constructor());
- eo_do(eo_obj, parent = eo_parent_get());
- eo_e = evas_object_evas_get(parent);
-
evas_object_image_init(eo_obj);
- evas_object_inject(eo_obj, obj, eo_e);
if (!_init_cow())
return NULL;