summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-07-20 20:50:46 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-07-20 20:50:46 +0000
commit708cf95507983a1b478e4289fe7fa2f7c785beeb (patch)
tree0af4c78c515ceb5c3f1646d4320687712bc38302 /gtk/gtkicontheme.c
parenta8122825b00126c7c3a2b4a1c33f083bc65d2c88 (diff)
downloadgdk-pixbuf-708cf95507983a1b478e4289fe7fa2f7c785beeb.tar.gz
Explicitly use the svg loader, if available. This should help with the
2005-07-20 Matthias Clasen <mclasen@redhat.com> * 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.
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r--gtk/gtkicontheme.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 97cf4f9c5..8e36998fd 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))