2008-06-22 14:28:52 +00:00
|
|
|
#include "config.h"
|
2000-06-21 20:47:22 +00:00
|
|
|
#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
|
2002-10-13 23:56:31 +00:00
|
|
|
pixbuf_init (void)
|
2000-06-21 20:47:22 +00:00
|
|
|
{
|
2002-03-03 04:16:30 +00:00
|
|
|
if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la"))
|
2010-05-18 23:23:06 +00:00
|
|
|
g_setenv ("GDK_PIXBUF_MODULE_FILE", "../gdk-pixbuf/loaders.cache", TRUE);
|
2000-06-21 20:47:22 +00:00
|
|
|
}
|