gtk+ r19634 - in trunk: . tests
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19634 - in trunk: . tests
- Date: Fri, 22 Feb 2008 20:17:01 +0000 (GMT)
Author: tml
Date: Fri Feb 22 20:17:00 2008
New Revision: 19634
URL: http://svn.gnome.org/viewvc/gtk+?rev=19634&view=rev
Log:
2008-02-22 Tor Lillqvist <tml novell com>
* tests/pixbuf-init.c: Add file missing from SVN, from the tarball.
Added:
trunk/tests/pixbuf-init.c
Modified:
trunk/ChangeLog
Added: trunk/tests/pixbuf-init.c
==============================================================================
--- (empty file)
+++ trunk/tests/pixbuf-init.c Fri Feb 22 20:17:00 2008
@@ -0,0 +1,20 @@
+#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);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]