1 #include "config.h" 2 #include <glib.h> 3 #include <glib/gstdio.h> 4 5 static gboolean file_exists(const char * filename)6file_exists (const char *filename) 7 { 8 GStatBuf statbuf; 9 10 return g_stat (filename, &statbuf) == 0; 11 } 12 13 void pixbuf_init(void)14pixbuf_init (void) 15 { 16 if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la")) 17 g_setenv ("GDK_PIXBUF_MODULE_FILE", "../gdk-pixbuf/gdk-pixbuf.loaders", TRUE); 18 } 19