2008-06-22 14:28:52 +00:00
|
|
|
#include "config.h"
|
2008-02-22 20:17:00 +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
|
|
|
|
pixbuf_init (void)
|
|
|
|
{
|
2008-06-18 13:29:02 +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);
|
2008-02-22 20:17:00 +00:00
|
|
|
}
|