forked from enlightenment/efl
evas canvas: add exceptional handling in invalid input case.
@fix
This commit is contained in:
parent
365e390a37
commit
3c7188ec20
|
@ -262,6 +262,9 @@ _evas_object_grid_smart_set_user(Evas_Smart_Class *sc)
|
|||
EAPI Evas_Object *
|
||||
evas_object_grid_add(Evas *evas)
|
||||
{
|
||||
MAGIC_CHECK(evas, Evas, MAGIC_EVAS);
|
||||
return NULL;
|
||||
MAGIC_CHECK_END();
|
||||
Evas_Object *obj = eo_add(MY_CLASS, evas);
|
||||
return obj;
|
||||
}
|
||||
|
|
|
@ -959,6 +959,9 @@ _evas_table_evas_object_smart_calculate(Eo *o, Evas_Table_Data *priv)
|
|||
EAPI Evas_Object *
|
||||
evas_object_table_add(Evas *evas)
|
||||
{
|
||||
MAGIC_CHECK(evas, Evas, MAGIC_EVAS);
|
||||
return NULL;
|
||||
MAGIC_CHECK_END();
|
||||
Evas_Object *obj = eo_add(MY_CLASS, evas);
|
||||
return obj;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue