forked from enlightenment/efl
parent
868e54d7d2
commit
3d0bd377dc
|
@ -1013,6 +1013,23 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "images/%i", image_id);
|
snprintf(buf, sizeof(buf), "images/%i", image_id);
|
||||||
evas_object_image_file_set(ep->object, ed->file->path, buf);
|
evas_object_image_file_set(ep->object, ed->file->path, buf);
|
||||||
|
if (evas_object_image_load_error_get(ep->object) != EVAS_LOAD_ERROR_NONE)
|
||||||
|
{
|
||||||
|
printf("EDJE: Error loading image collection \"%s\" from file \"%s\"\n",
|
||||||
|
buf, ed->file->path);
|
||||||
|
if (evas_object_image_load_error_get(ep->object) == EVAS_LOAD_ERROR_GENERIC)
|
||||||
|
printf("Error type: EVAS_LOAD_ERROR_GENERIC\n");
|
||||||
|
else if (evas_object_image_load_error_get(ep->object) == EVAS_LOAD_ERROR_DOES_NOT_EXIST)
|
||||||
|
printf("Error type: EVAS_LOAD_ERROR_DOES_NOT_EXIST\n");
|
||||||
|
else if (evas_object_image_load_error_get(ep->object) == EVAS_LOAD_ERROR_PERMISSION_DENIED)
|
||||||
|
printf("Error type: EVAS_LOAD_ERROR_PERMISSION_DENIED\n");
|
||||||
|
else if (evas_object_image_load_error_get(ep->object) == EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED)
|
||||||
|
printf("Error type: EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED\n");
|
||||||
|
else if (evas_object_image_load_error_get(ep->object) == EVAS_LOAD_ERROR_CORRUPT_FILE)
|
||||||
|
printf("Error type: EVAS_LOAD_ERROR_CORRUPT_FILE\n");
|
||||||
|
else if (evas_object_image_load_error_get(ep->object) == EVAS_LOAD_ERROR_UNKNOWN_FORMAT)
|
||||||
|
printf("Error type: EVAS_LOAD_ERROR_UNKNOWN_FORMAT\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
evas_object_color_set(ep->object, p3.color.r, p3.color.g, p3.color.b, p3.color.a);
|
evas_object_color_set(ep->object, p3.color.r, p3.color.g, p3.color.b, p3.color.a);
|
||||||
if (p3.visible) evas_object_show(ep->object);
|
if (p3.visible) evas_object_show(ep->object);
|
||||||
|
|
|
@ -10,7 +10,12 @@ _eet_memfile_read_open(void *data, size_t size)
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
f = tmpfile();
|
f = tmpfile();
|
||||||
if (!f) return NULL;
|
if (!f)
|
||||||
|
{
|
||||||
|
printf("EET: Error opening tmp file (no fmemopen support fallback):\n");
|
||||||
|
perror("tmpfile()");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
fwrite(data, size, 1, f);
|
fwrite(data, size, 1, f);
|
||||||
rewind(f);
|
rewind(f);
|
||||||
return f;
|
return f;
|
||||||
|
|
Loading…
Reference in New Issue