Commit 6a646052 authored by Dom Lachowicz's avatar Dom Lachowicz Committed by Dom Lachowicz

Fix build on GTK+ >= 2.9. (329850)

2006-05-07  Dom Lachowicz <cinamod@hotmail.com>

	* gdk-pixbuf-loader/io-svg.c: Fix build on GTK+ >= 2.9. (329850)
parent e2b0d4c1
2006-05-07 Dom Lachowicz <cinamod@hotmail.com>
* gdk-pixbuf-loader/io-svg.c: Fix build on GTK+ >= 2.9. (329850)
2006-05-04 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-base.c: Fix some cast warnings (340666)
......
......@@ -199,9 +199,23 @@ fill_vtable (GdkPixbufModule *module)
GDK_PIXBUF_MICRO >= (micro)))
#endif
void
fill_info (GdkPixbufFormat *info)
{
/* see http://bugzilla.gnome.org/show_bug.cgi?id=329850 */
#if GDK_PIXBUF_CHECK_VERSION(2,9,0)
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 }
};
#else
static GdkPixbufModulePattern signature_old[] = {
{ (unsigned char*) "<svg", NULL, 100 },
{ (unsigned char*) "<!DOCTYPE svg", NULL, 100 },
......@@ -212,6 +226,8 @@ fill_info (GdkPixbufFormat *info)
{ (unsigned char*) " <!DOCTYPE svg", (unsigned char*) "* ", 100 },
{ NULL, NULL, 0 }
};
#endif
static gchar *mime_types[] = { /* yes folks, i actually have run into all of these in the wild... */
"image/svg+xml",
"image/svg",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment