diff --git a/ChangeLog b/ChangeLog index e7121ced4..630d4b70f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-02-22 Tor Lillqvist + + * tests/pixbuf-init.c: Add file missing from SVN, from the tarball. + 2008-02-22 Dominic Lachowicz * gdk-pixbuf/queryloaders.c (loader_sanity_check): It's perfectly acceptable diff --git a/tests/pixbuf-init.c b/tests/pixbuf-init.c new file mode 100644 index 000000000..f4faa9a2d --- /dev/null +++ b/tests/pixbuf-init.c @@ -0,0 +1,20 @@ +#include +#include + +#include +#include + +static gboolean +file_exists (const char *filename) +{ + struct stat statbuf; + + return stat (filename, &statbuf) == 0; +} + +void +pixbuf_init (void) +{ + if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la")) + g_setenv ("GDK_PIXBUF_MODULE_FILE", "../gdk-pixbuf/gdk-pixbuf.loaders", TRUE); +}