From 708cf95507983a1b478e4289fe7fa2f7c785beeb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 20 Jul 2005 20:50:46 +0000 Subject: [PATCH] Explicitly use the svg loader, if available. This should help with the 2005-07-20 Matthias Clasen * gtk/gtkicontheme.c (load_svg_at_size): Explicitly use the svg loader, if available. This should help with the fact that svg is not reliably sniffable with the current gdk-pixbuf sniffing code. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkicontheme.c | 5 ++++- 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a2d9804ba2..363cba72b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-07-20 Matthias Clasen + * gtk/gtkicontheme.c (load_svg_at_size): Explicitly use the + svg loader, if available. This should help with the fact that + svg is not reliably sniffable with the current gdk-pixbuf sniffing + code. + * gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded expanders are not fuzzy. (#310172, reported by Alexander Larsson, patch by Owen Taylor) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a2d9804ba2..363cba72b4 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,10 @@ 2005-07-20 Matthias Clasen + * gtk/gtkicontheme.c (load_svg_at_size): Explicitly use the + svg loader, if available. This should help with the fact that + svg is not reliably sniffable with the current gdk-pixbuf sniffing + code. + * gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded expanders are not fuzzy. (#310172, reported by Alexander Larsson, patch by Owen Taylor) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a2d9804ba2..363cba72b4 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,10 @@ 2005-07-20 Matthias Clasen + * gtk/gtkicontheme.c (load_svg_at_size): Explicitly use the + svg loader, if available. This should help with the fact that + svg is not reliably sniffable with the current gdk-pixbuf sniffing + code. + * gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded expanders are not fuzzy. (#310172, reported by Alexander Larsson, patch by Owen Taylor) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 97cf4f9c57..8e36998fde 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2371,7 +2371,10 @@ load_svg_at_size (const gchar *filename, &contents, &length, error)) goto bail; - loader = gdk_pixbuf_loader_new (); + loader = gdk_pixbuf_loader_new_with_type ("svg", error); + if (loader == NULL) + goto bail; + gdk_pixbuf_loader_set_size (loader, size, size); if (!gdk_pixbuf_loader_write (loader, contents, length, error))