forked from AuroraMiddleware/gtk
d5565f5b63
2008-06-18 Michael Natterer <mitch@imendio.com> * tests/Makefile.am * tests/autotestfilechooser.c * tests/buildertest.c * tests/defaultvaluetest.c * tests/floatingtest.c * tests/objecttests.c * tests/pixbuf-init.c * tests/textbuffertest.c: remove unit tests here... * gtk/tests/Makefile.am * gtk/tests/builder.c * gtk/tests/defaultvalue.c * gtk/tests/filechooser.c * gtk/tests/floating.c * gtk/tests/object.c * gtk/tests/pixbuf-init.c * gtk/tests/textbuffer.c: ...and add them here. svn path=/trunk/; revision=20450
21 lines
380 B
C
21 lines
380 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);
|
|
}
|