Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: edje_calc.c Log Message: spew out errors =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_calc.c,v retrieving revision 1.64 retrieving revision 1.65 diff -u -3 -r1.64 -r1.65 --- edje_calc.c 31 Mar 2005 17:39:31 -0000 1.64 +++ edje_calc.c 6 May 2005 08:59:09 -0000 1.65 @@ -1013,6 +1013,23 @@ { snprintf(buf, sizeof(buf), "images/%i", image_id); 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); if (p3.visible) evas_object_show(ep->object); ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs