summaryrefslogtreecommitdiff
path: root/src/lib/evas/include
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-05-09 20:01:17 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:19 -0700
commit5c9815676b023b9707ee12c117335fb147d47c27 (patch)
treea34c6f58c131d16634b9513e67d7ccc3fd1a0b99 /src/lib/evas/include
parentb5b9f72f57b29337dbb034a3704734a0aab9d178 (diff)
evas: move the del event to match invalidate and free event to the end of the destructor.
Diffstat (limited to 'src/lib/evas/include')
-rw-r--r--src/lib/evas/include/evas_inline.x9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_inline.x b/src/lib/evas/include/evas_inline.x
index fd00dbe2aa..74ed8bbd01 100644
--- a/src/lib/evas/include/evas_inline.x
+++ b/src/lib/evas/include/evas_inline.x
@@ -355,6 +355,15 @@ _evas_engine_context(Evas_Public_Data *e)
355 return e->backend; 355 return e->backend;
356} 356}
357 357
358static inline void
359_evas_wrap_del(Evas_Object **eo, Evas_Object_Protected_Data *pd)
360{
361 if (!*eo) return ;
362 if (pd->legacy.ctor) evas_object_del(*eo);
363 else efl_del(*eo);
364 *eo = NULL;
365}
366
358#define _EVAS_COLOR_CLAMP(x, y) do { \ 367#define _EVAS_COLOR_CLAMP(x, y) do { \
359 if (x > y) { x = y; bad = 1; } \ 368 if (x > y) { x = y; bad = 1; } \
360 if (x < 0) { x = 0; bad = 1; } } while (0) 369 if (x < 0) { x = 0; bad = 1; } } while (0)