convert some printfs to eina error.

SVN revision: 47451
This commit is contained in:
Gustavo Sverzut Barbieri 2010-03-25 17:30:59 +00:00
parent ee58900290
commit 49da44bf6f
3 changed files with 5 additions and 7 deletions

View File

@ -1463,7 +1463,7 @@ _edje_box_recalc_apply(Edje *ed __UNUSED__, Edje_Real_Part *ep, Edje_Calc_Params
if ((!chosen_desc->box.alt_layout) ||
(!_edje_box_layout_find(chosen_desc->box.alt_layout, &layout, &data, &free_data)))
{
ERR("ERROR: box layout '%s' (fallback '%s') not available, using horizontal.",
ERR("box layout '%s' (fallback '%s') not available, using horizontal.",
chosen_desc->box.layout, chosen_desc->box.alt_layout);
layout = evas_object_box_layout_horizontal;
free_data = NULL;

View File

@ -100,7 +100,7 @@ edje_init(void)
sizeof (Edje_Real_Part), 128);
if (!_edje_real_part_mp)
{
ERR("ERROR: Mempool for Edje_Real_Part cannot be allocated.\n");
ERR("Mempool for Edje_Real_Part cannot be allocated.");
goto shutdown_eet;
}
@ -109,7 +109,7 @@ edje_init(void)
sizeof (Edje_Real_Part_State), 256);
if (!_edje_real_part_state_mp)
{
ERR("ERROR: Mempool for Edje_Real_Part_State cannot be allocated.\n");
ERR("Mempool for Edje_Real_Part_State cannot be allocated.");
goto shutdown_eet;
}

View File

@ -2083,8 +2083,7 @@ edje_object_part_swallow(Evas_Object *obj, const char *part, Evas_Object *obj_sw
if (!rp) return EINA_FALSE;
if (rp->part->type != EDJE_PART_TYPE_SWALLOW)
{
fprintf(stderr, "ERROR: cannot unswallow part %s: not swallow type!\n",
rp->part->name);
ERR("cannot unswallow part %s: not swallow type!", rp->part->name);
return EINA_FALSE;
}
_edje_real_part_swallow(rp, obj_swallow);
@ -2430,8 +2429,7 @@ edje_object_part_unswallow(Evas_Object *obj __UNUSED__, Evas_Object *obj_swallow
return;
if (rp->part->type != EDJE_PART_TYPE_SWALLOW)
{
fprintf(stderr, "ERROR: cannot unswallow part %s: not swallow type!\n",
rp->part->name);
ERR("cannot unswallow part %s: not swallow type!", rp->part->name);
return;
}
if (rp->swallowed_object == obj_swallow)