Erik Auerswald 03434efeae Check for errors when loading or saving an image with Imlib2.
This relies on the definition of enum _imlib_load_error in Imlib2.h
and might break on different versions of Imlib2, but should be better
than the total lack of error reporting before.

Developed with Imlib2 version 1.4.5 from Debian/Sid:

$ dpkg -l libimlib2-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libimlib2-dev  1.4.5-1      i386         Imlib2 development files
2013-01-11 05:30:21 +00:00
2008-03-02 15:03:51 +00:00
2008-03-02 15:03:51 +00:00
2013-01-08 16:56:37 +00:00
2013-01-08 16:56:37 +00:00
2013-01-08 16:56:37 +00:00
S
Description
Seven Segment Optical Character Recognition
1 MiB
Languages
C 87.7%
Roff 9.9%
Makefile 2.4%