From 6db14175635e681b61982d77fb852a5f7023f562 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 22 Feb 2008 20:17:00 +0000 Subject: [PATCH] Add file missing from SVN, from the tarball. 2008-02-22 Tor Lillqvist * tests/pixbuf-init.c: Add file missing from SVN, from the tarball. svn path=/trunk/; revision=19634 --- ChangeLog | 4 ++++ tests/pixbuf-init.c | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 tests/pixbuf-init.c 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); +}