Add file missing from SVN, from the tarball.

2008-02-22  Tor Lillqvist  <tml@novell.com>

	* tests/pixbuf-init.c: Add file missing from SVN, from the tarball.


svn path=/trunk/; revision=19634
This commit is contained in:
Tor Lillqvist 2008-02-22 20:17:00 +00:00 committed by Tor Lillqvist
parent 37cb4f7d64
commit 6db1417563
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-02-22 Tor Lillqvist <tml@novell.com>
* tests/pixbuf-init.c: Add file missing from SVN, from the tarball.
2008-02-22 Dominic Lachowicz <domlachowicz@gmail.com>
* gdk-pixbuf/queryloaders.c (loader_sanity_check): It's perfectly acceptable

20
tests/pixbuf-init.c Normal file
View File

@ -0,0 +1,20 @@
#include <config.h>
#include <glib.h>
#include <sys/stat.h>
#include <stdlib.h>
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);
}