summaryrefslogtreecommitdiff
path: root/demos/testpixbuf-scale.c
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2001-10-05 18:51:47 +0000
committerSven Neumann <neo@src.gnome.org>2001-10-05 18:51:47 +0000
commit40c29264820f2cf1db0d6e2836ae827ef9a5d05c (patch)
tree3a0a76e969c1b154cc677d553371e7f08390a2b5 /demos/testpixbuf-scale.c
parent58a5467a4529526a08ef570c8451bf4eef35df22 (diff)
downloadgtk+-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-scale.c')
-rw-r--r--demos/testpixbuf-scale.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/demos/testpixbuf-scale.c b/demos/testpixbuf-scale.c
index fd6c801dca..959fa115c9 100644
--- a/demos/testpixbuf-scale.c
+++ b/demos/testpixbuf-scale.c
@@ -63,6 +63,7 @@ main(int argc, char **argv)
GtkWidget *hbox, *label, *hscale;
GtkAdjustment *adjustment;
GtkRequisition scratch_requisition;
+ const gchar *creator;
GError *error;
pixbuf_init ();
@@ -83,6 +84,10 @@ main(int argc, char **argv)
exit(1);
}
+ creator = gdk_pixbuf_get_option (pixbuf, "tEXt::Software");
+ if (creator)
+ g_print ("%s was created by '%s'\n", argv[1], creator);
+
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (gtk_main_quit), NULL);