evas vg: add warning msgs for users.

Since usage has been changed under the beta version,
Some users may keep the old-usage that breaks the vg behavior now.

For their information, vg prints messages in case of breaks.
This commit is contained in:
Hermet Park 2018-06-19 08:35:46 +09:00
parent 6b1ab3cd9c
commit 803025f919
2 changed files with 6 additions and 0 deletions

View File

@ -189,6 +189,9 @@ _efl_canvas_vg_container_efl_duplicate_duplicate(const Eo *obj,
EAPI Efl_VG*
evas_vg_container_add(Efl_VG *parent)
{
/* Warn it because the usage has been changed.
We can remove this message after v1.21. */
if (!parent) CRI("Efl_VG Container doesn't allow null parent!");
return efl_add(MY_CLASS, parent);
}

View File

@ -426,6 +426,9 @@ evas_vg_shape_equal_commands(Eo *obj, const Eo *with)
EAPI Efl_Canvas_Vg_Node*
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);
}