aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_out.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-09-25 13:32:56 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-09-25 13:34:18 +0900
commitb37494503f156195d336d3376c542f0a2d006724 (patch)
tree6538a3fbe6edbfda10ff04c75540c27c2efead0a /src/lib/evas/canvas/evas_out.c
parentecore: update to new eo_parent_get/set API. (diff)
downloadefl-b37494503f156195d336d3376c542f0a2d006724.tar.gz
evas: update to new eo_parent_get/set API.
Diffstat (limited to 'src/lib/evas/canvas/evas_out.c')
-rw-r--r--src/lib/evas/canvas/evas_out.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_out.c b/src/lib/evas/canvas/evas_out.c
index 592c0385ac..2b1bdb629a 100644
--- a/src/lib/evas/canvas/evas_out.c
+++ b/src/lib/evas/canvas/evas_out.c
@@ -31,9 +31,14 @@ static void
_constructor(Eo *eo_obj, void *_pd, va_list *list EINA_UNUSED)
{
Evas_Out_Public_Data *eo_dat = _pd;
- Eo *eo_parent = eo_parent_get(eo_obj);
- Evas_Public_Data *e = eo_data_scope_get(eo_parent, EVAS_CLASS);
+ Eo *eo_parent;
+ Evas_Public_Data *e;
+
+ eo_do(eo_obj, eo_parent_get(&eo_parent));
+ e = eo_data_scope_get(eo_parent, EVAS_CLASS);
+
eo_do_super(eo_obj, MY_CLASS, eo_constructor());
+
if (!e) return;
e->outputs = eina_list_append(e->outputs, eo_obj);
if (e->engine.func->info) eo_dat->info = e->engine.func->info(eo_parent);
@@ -52,8 +57,11 @@ static void
_destructor(Eo *eo_obj, void *_pd, va_list *list EINA_UNUSED)
{
Evas_Out_Public_Data *eo_dat = _pd;
- Eo *eo_parent = eo_parent_get(eo_obj);
- Evas_Public_Data *e = eo_data_scope_get(eo_parent, EVAS_CLASS);
+ Eo *eo_parent;
+ Evas_Public_Data *e;
+
+ eo_do(eo_obj, eo_parent_get(&eo_parent));
+ e = eo_data_scope_get(eo_parent, EVAS_CLASS);
// XXX: need to free output and context one they get allocated one day
// e->engine.func->context_free(eo_dat->output, eo_dat->context);
// e->engine.func->output_free(eo_dat->output);