? librsvg-2.0-uninstalled.pc
? librsvg-enum-types.c
? librsvg-enum-types.h
? rsvg-view
? s-enum-types-c
? s-enum-types-h
? stamp-h1
? moz-plugin/Makefile
? moz-plugin/Makefile.in
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/librsvg/ChangeLog,v
retrieving revision 1.407
diff -p -u -r1.407 ChangeLog
--- ChangeLog	21 Jul 2005 06:08:55 -0000	1.407
+++ ChangeLog	26 Jul 2005 20:59:37 -0000
@@ -1,3 +1,8 @@
+2005-07-22  William Jon McCann  <mccann@jhu.edu>
+
+	* gdk-pixbuf-loader/io-svg.c (fill_info): Use new unanchored
+	pattern mask if available.  Fixes #311277.
+
 2005-07-21 Caleb Moore <c.moore@student.unsw.edu.au>
 
 	* Makefile.am, configure.in, rsvg.c, rsvg-base.c: further split the library into librsvg-2.so, librsvg-2-base.so and librsvg-2-libart.so. Make libart an optional dependancy.
Index: gdk-pixbuf-loader/io-svg.c
===================================================================
RCS file: /cvs/gnome/librsvg/gdk-pixbuf-loader/io-svg.c,v
retrieving revision 1.26
diff -p -u -r1.26 io-svg.c
--- gdk-pixbuf-loader/io-svg.c	24 Jun 2005 12:14:56 -0000	1.26
+++ gdk-pixbuf-loader/io-svg.c	26 Jul 2005 20:59:37 -0000
@@ -191,14 +191,27 @@ fill_vtable (GdkPixbufModule *module)
 #define GDK_PIXBUF_FORMAT_THREADSAFE (1 << 2)
 #endif
 
+#ifndef GDK_PIXBUF_CHECK_VERSION
+#define GDK_PIXBUF_CHECK_VERSION(major,minor,micro)    \
+    (GDK_PIXBUF_MAJOR > (major) || \
+     (GDK_PIXBUF_MAJOR == (major) && GDK_PIXBUF_MINOR > (minor)) || \
+     (GDK_PIXBUF_MAJOR == (major) && GDK_PIXBUF_MINOR == (minor) && \
+      GDK_PIXBUF_MICRO >= (micro)))
+#endif
+
 void
 fill_info (GdkPixbufFormat *info)
 {
-        static GdkPixbufModulePattern signature[] = {
+        static GdkPixbufModulePattern signature_old[] = {
                 { "<svg", NULL, 100 },
                 { "<!DOCTYPE svg", NULL, 100 },
                 { NULL, NULL, 0 }
         };
+        static GdkPixbufModulePattern signature_new[] = {
+                { " <svg", "*    ", 100 },
+                { " <!DOCTYPE svg", "*             ", 100 },
+                { NULL, NULL, 0 }
+        };
         static gchar *mime_types[] = { /* yes folks, i actually have run into all of these in the wild... */
                 "image/svg+xml",
                 "image/svg",
@@ -215,7 +228,11 @@ fill_info (GdkPixbufFormat *info)
         };
 
         info->name        = "svg";
-        info->signature   = signature;
+        if (GDK_PIXBUF_CHECK_VERSION (2, 7, 4)) {
+                info->signature = signature_new;
+        } else {
+                info->signature = signature_old;
+        }
         info->description = _("Scalable Vector Graphics");
         info->mime_types  = mime_types;
         info->extensions  = extensions;
