edje - print error when swallow part does not exist

SVN revision: 69281
This commit is contained in:
ChunEon Park 2012-03-13 05:34:46 +00:00
parent 6b3d9da609
commit 3e52a0ed73
1 changed files with 5 additions and 1 deletions

View File

@ -2293,7 +2293,11 @@ edje_object_part_swallow(Evas_Object *obj, const char *part, Evas_Object *obj_sw
}
rp = _edje_real_part_recursive_get(ed, part);
if (!rp) return EINA_FALSE;
if (!rp)
{
ERR("cannot swallow part %s: part not exist!", part);
return EINA_FALSE;
}
if (rp->part->type != EDJE_PART_TYPE_SWALLOW)
{
ERR("cannot swallow part %s: not swallow type!", rp->part->name);