diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-07-20 20:50:46 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-07-20 20:50:46 +0000 |
commit | 708cf95507983a1b478e4289fe7fa2f7c785beeb (patch) | |
tree | 0af4c78c515ceb5c3f1646d4320687712bc38302 /gtk/gtkicontheme.c | |
parent | a8122825b00126c7c3a2b4a1c33f083bc65d2c88 (diff) | |
download | gdk-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.c | 5 |
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)) |