diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-07 18:55:01 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-07 18:56:32 -0500 |
commit | 284fd36e5d3f1297a6e443971802f9191b11f42a (patch) | |
tree | 910ce994b2899fcdb1aeaf3e95f26d0efd6bd946 /gtk/gdkpixbufutilsprivate.h | |
parent | 73a3d4b785205319013a79d8d509296bb2b1fd24 (diff) | |
download | gtk+-284fd36e5d3f1297a6e443971802f9191b11f42a.tar.gz |
Fix symbolic.svg rendering
With the shader approach to symbolic recoloring, we must
not recolor the svgs anymore as we're loading them. Instead,
load them the same way that gtk-encode-symbolic-svg does.
This fixes the rendering of large symbolic icons e.g. the
'no search results found' page in the file chooser.
Diffstat (limited to 'gtk/gdkpixbufutilsprivate.h')
-rw-r--r-- | gtk/gdkpixbufutilsprivate.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gdkpixbufutilsprivate.h b/gtk/gdkpixbufutilsprivate.h index f01f1774b6..1ea23dc2a2 100644 --- a/gtk/gdkpixbufutilsprivate.h +++ b/gtk/gdkpixbufutilsprivate.h @@ -30,6 +30,19 @@ GdkPixbuf *_gdk_pixbuf_new_from_resource_scaled (const gchar *resource_path, gdouble scale, GError **error); +GdkPixbuf *gtk_make_symbolic_pixbuf_from_data (const char *data, + gsize len, + int width, + int height, + GError **error); +GdkPixbuf *gtk_make_symbolic_pixbuf_from_file (GFile *file, + int width, + int height, + GError **error); +GdkPixbuf *gtk_make_symbolic_pixbuf_from_resource (const char *path, + int width, + int height, + GError **error); G_END_DECLS #endif /* __GDK_PIXBUF_UTILS_PRIVATE_H__ */ |