mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
6db1417563
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
21 lines
374 B
C
21 lines
374 B
C
#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);
|
|
}
|