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.
This commit is contained in:
committed by
Matthias Clasen
parent
a8122825b0
commit
708cf95507
@ -1,5 +1,10 @@
|
|||||||
2005-07-20 Matthias Clasen <mclasen@redhat.com>
|
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.
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
|
* gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
|
||||||
expanders are not fuzzy. (#310172, reported by Alexander Larsson,
|
expanders are not fuzzy. (#310172, reported by Alexander Larsson,
|
||||||
patch by Owen Taylor)
|
patch by Owen Taylor)
|
||||||
|
|||||||
@ -1,5 +1,10 @@
|
|||||||
2005-07-20 Matthias Clasen <mclasen@redhat.com>
|
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.
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
|
* gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
|
||||||
expanders are not fuzzy. (#310172, reported by Alexander Larsson,
|
expanders are not fuzzy. (#310172, reported by Alexander Larsson,
|
||||||
patch by Owen Taylor)
|
patch by Owen Taylor)
|
||||||
|
|||||||
@ -1,5 +1,10 @@
|
|||||||
2005-07-20 Matthias Clasen <mclasen@redhat.com>
|
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.
|
||||||
|
|
||||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
|
* gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded
|
||||||
expanders are not fuzzy. (#310172, reported by Alexander Larsson,
|
expanders are not fuzzy. (#310172, reported by Alexander Larsson,
|
||||||
patch by Owen Taylor)
|
patch by Owen Taylor)
|
||||||
|
|||||||
@ -2371,7 +2371,10 @@ load_svg_at_size (const gchar *filename,
|
|||||||
&contents, &length, error))
|
&contents, &length, error))
|
||||||
goto bail;
|
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);
|
gdk_pixbuf_loader_set_size (loader, size, size);
|
||||||
|
|
||||||
if (!gdk_pixbuf_loader_write (loader, contents, length, error))
|
if (!gdk_pixbuf_loader_write (loader, contents, length, error))
|
||||||
|
|||||||
Reference in New Issue
Block a user