diff options
author | Sam Thursfield <ssssam@gmail.com> | 2009-08-02 10:40:13 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2009-08-02 10:40:13 +0300 |
commit | ad3be192517c10097b91a618f62fd741d8e681f6 (patch) | |
tree | 1eaa8c0f33aeb8941fbb4ae1d2c5a2f74a29bb3d /gdk-pixbuf | |
parent | 2f0dd2d8064195e52369ef3e59b207e07bbede41 (diff) | |
download | gtk+-ad3be192517c10097b91a618f62fd741d8e681f6.tar.gz |
Make gdk-pixbuf-csource work on Windows also in the build tree.
Patch from bug #590448.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index bc357bd059..664e519da2 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -277,6 +277,12 @@ correct_prefix (gchar **path) if (strncmp (*path, GTK_PREFIX "/", strlen (GTK_PREFIX "/")) == 0 || strncmp (*path, GTK_PREFIX "\\", strlen (GTK_PREFIX "\\")) == 0) { + if (strlen(*path) > 5 && strncmp (*path - 5, ".libs", 5) == 0) + { + /* We are being run from inside the build tree, and shouldn't mess about. */ + return; + } + /* This is an entry put there by gdk-pixbuf-query-loaders on the * packager's system. On Windows a prebuilt GTK+ package can be * installed in a random location. The gdk-pixbuf.loaders file |