diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-06-26 11:53:48 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-08-02 14:49:36 -0400 |
commit | 6b75ef95f5d26a2958b77c00a7f7cc22e74cb36c (patch) | |
tree | dbd0b451936484fc68976781df4aba565d21047e | |
parent | ce4b2a8b895c5c1f0904471a95034e4ae0f670a5 (diff) | |
download | gdk-pixbuf-6b75ef95f5d26a2958b77c00a7f7cc22e74cb36c.tar.gz |
gdk-pixbuf: Make set_option() usable in client code
Not just in loaders.
https://bugzilla.gnome.org/show_bug.cgi?id=768043
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-core.h | 5 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.h | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-core.h b/gdk-pixbuf/gdk-pixbuf-core.h index ae3bf1a8b..be452f0f9 100644 --- a/gdk-pixbuf/gdk-pixbuf-core.h +++ b/gdk-pixbuf/gdk-pixbuf-core.h @@ -534,6 +534,11 @@ void gdk_pixbuf_saturate_and_pixelate (const GdkPixbuf *src, GDK_PIXBUF_AVAILABLE_IN_2_12 GdkPixbuf *gdk_pixbuf_apply_embedded_orientation (GdkPixbuf *src); +/* key/value pairs that can be attached by the pixbuf loader */ +GDK_PIXBUF_AVAILABLE_IN_ALL +gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf, + const gchar *key, + const gchar *value); GDK_PIXBUF_AVAILABLE_IN_ALL const gchar * gdk_pixbuf_get_option (GdkPixbuf *pixbuf, const gchar *key); diff --git a/gdk-pixbuf/gdk-pixbuf-io.h b/gdk-pixbuf/gdk-pixbuf-io.h index 5f4376e4e..d8df01049 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.h +++ b/gdk-pixbuf/gdk-pixbuf-io.h @@ -303,13 +303,6 @@ typedef void (* GdkPixbufModuleFillVtableFunc) (GdkPixbufModule *module); */ typedef void (* GdkPixbufModuleFillInfoFunc) (GdkPixbufFormat *info); -/* key/value pairs that can be attached by the pixbuf loader */ - -GDK_PIXBUF_AVAILABLE_IN_2_2 -gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf, - const gchar *key, - const gchar *value); - /** * GdkPixbufFormatFlags: * @GDK_PIXBUF_FORMAT_WRITABLE: the module can write out images in the format. |