hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5a46f2136a03af6d54dedf829bcf1ec398626a0e

commit 5a46f2136a03af6d54dedf829bcf1ec398626a0e
Author: Hermet Park <[email protected]>
Date:   Fri Dec 28 13:38:36 2018 +0900

    evas vg: more strict check for the argument.
    
    a shape node must have vg node as the parent.
---
 src/lib/evas/canvas/efl_canvas_vg_shape.c | 6 +++---
 1 file 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"

-- 


Reply via email to