diff options
author | Sven Neumann <sven@gimp.org> | 2001-10-05 18:51:47 +0000 |
---|---|---|
committer | Sven Neumann <neo@src.gnome.org> | 2001-10-05 18:51:47 +0000 |
commit | 40c29264820f2cf1db0d6e2836ae827ef9a5d05c (patch) | |
tree | 3a0a76e969c1b154cc677d553371e7f08390a2b5 /demos/testpixbuf-save.c | |
parent | 58a5467a4529526a08ef570c8451bf4eef35df22 (diff) | |
download | gdk-pixbuf-40c29264820f2cf1db0d6e2836ae827ef9a5d05c.tar.gz |
gdk-pixbuf/gdk-pixbuf-io.c gdk-pixbuf/gdk-pixbuf-private.h
2001-10-05 Sven Neumann <sven@gimp.org>
* gdk-pixbuf/gdk-pixbuf-io.c
* gdk-pixbuf/gdk-pixbuf-private.h
* gdk-pixbuf/gdk-pixbuf.c
* gdk-pixbuf/gdk-pixbuf.h
* gdk-pixbuf/io-jpeg.c
* gdk-pixbuf/io-png.c: changed GDK_PIXBUF_ERROR_BAD_OPTION_VALUE to
GDK_PIXBUF_ERROR_BAD_OPTION to we can use it for bad keys too. Added
new public API gdk_pixbuf_get_option() to retrieve key/value pairs
set by an image loader. Added support for saving and reading PNG tEXt
chunks in PNG images.
* demos/testpixbuf-save.c
* demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
feature.
* gdk-pixbuf/tmpl/gdk-pixbuf.sgml: adapt to changes in GDK_PIXBUF_ERROR
enum.
Diffstat (limited to 'demos/testpixbuf-save.c')
-rw-r--r-- | demos/testpixbuf-save.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demos/testpixbuf-save.c b/demos/testpixbuf-save.c index 6c6a1da70..88cac525d 100644 --- a/demos/testpixbuf-save.c +++ b/demos/testpixbuf-save.c @@ -35,7 +35,10 @@ keypress_check (GtkWidget *widget, GdkEventKey *evt, gpointer data) return; } - if (!gdk_pixbuf_save (pixbuf, "foo.png", "png", &err, NULL)) { + if (!gdk_pixbuf_save (pixbuf, "foo.png", "png", + &err, + "tEXt::Software", "testpixbuf-save", + NULL)) { fprintf (stderr, "%s", err->message); g_error_free (err); } |