Files
gtk/demos/pixbuf-init.c
Erwann Chenede 6ab8b0bd94 (06/03/02) Erwann Chenede - <erwann.chenede@sun.com>
* Merged gtk HEAD with gtk-multihead branch
2002-03-06 16:33:37 +00:00

20 lines
318 B
C

#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 ()
{
if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la"))
putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf");
}