I'd like to do something like this to evas image loading, but I'd have
to change evas_common_load_image_from_file() and like to accept the
error parameter. Is it ok to do that?
On 7/6/07, Enlightenment CVS <[EMAIL PROTECTED]> wrote:
> Enlightenment CVS committal
>
> Author : barbieri
> Project : e17
> Module : libs/edje
>
> Dir : e17/libs/edje/src/lib
>
>
> Modified Files:
> edje_cache.c
>
>
> Log Message:
> Use a more appropriate message for files not found than 'Unknown Format'
>
> ===================================================================
> RCS file: /cvs/e/e17/libs/edje/src/lib/edje_cache.c,v
> retrieving revision 1.12
> retrieving revision 1.13
> diff -u -3 -r1.12 -r1.13
> --- edje_cache.c 5 Apr 2007 15:54:16 -0000 1.12
> +++ edje_cache.c 6 Jul 2007 20:46:32 -0000 1.13
> @@ -100,6 +100,13 @@
> Edje_Part_Collection *edc;
> Eet_File *ef;
> Evas_List *l;
> + struct stat st;
> +
> + if (stat(file, &st) != 0)
> + {
> + *error_ret = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
> + return NULL;
> + }
>
> ef = eet_open(file, EET_FILE_MODE_READ);
> if (!ef)
>
--
Gustavo Sverzut Barbieri
--------------------------------------
Jabber: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
ICQ#: 17249123
Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel