aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-12-28 13:38:36 +0900
committerHermet Park <hermetpark@gmail.com>2018-12-28 13:39:37 +0900
commit5a46f2136a03af6d54dedf829bcf1ec398626a0e (patch)
treedc6bf1959a39870fb0b38bc96ad7feaa91c833f2
parentefl gfx_path: remove EFL_GFX_PATH_EVENT_CHANGED (diff)
downloadefl-5a46f2136a03af6d54dedf829bcf1ec398626a0e.tar.gz
evas vg: more strict check for the argument.
a shape node must have vg node as the parent.
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_shape.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_shape.c b/src/lib/evas/canvas/efl_canvas_vg_shape.c
index d1c41fa8aa..dc671f918b 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_shape.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_shape.c
@@ -454,13 +454,13 @@ evas_vg_shape_equal_commands(Eo *obj, const Eo *with)
return efl_gfx_path_equal_commands(obj, with);
}
-EAPI Efl_Canvas_Vg_Node*
+EAPI Efl_Canvas_Vg_Shape*
evas_vg_shape_add(Efl_Canvas_Vg_Node *parent)
{
/* Warn it because the usage has been changed.
We can remove this message after v1.21. */
- if (!parent) CRI("Efl_VG Shape doesn't allow null parent!");
- return efl_add(EFL_CANVAS_VG_SHAPE_CLASS, parent);
+ if (!parent) CRI("Efl_Canvas_Vg_Shape only allow Efl_Canvas_Vg_Node as the parent");
+ return efl_add(MY_CLASS, parent);
}
#include "efl_canvas_vg_shape.eo.c"