From 502e5a8859b87b141f6f45b657769a77edea8493 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 4 Oct 2000 16:39:44 +0000 Subject: Fix copyrights 2000-10-04 Havoc Pennington * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Fix copyrights * demos/testpixbuf.c: add inline pixbuf test --- demos/testpixbuf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'demos/testpixbuf.c') diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c index fe96bd3901..c6d5a45c54 100644 --- a/demos/testpixbuf.c +++ b/demos/testpixbuf.c @@ -25,6 +25,8 @@ #include #include +#include "test-inline-pixbufs.h" + typedef struct { FILE *imagefile; GdkPixbufLoader *loader; @@ -375,7 +377,7 @@ new_testrgb_window (GdkPixbuf *pixbuf, gchar *title) window = gtk_widget_new (gtk_window_get_type (), "GtkObject::user_data", NULL, "GtkWindow::type", GTK_WINDOW_TOPLEVEL, - "GtkWindow::title", "testrgb", + "GtkWindow::title", title ? title : "testrgb", "GtkWindow::allow_shrink", TRUE, NULL); gtk_signal_connect (GTK_OBJECT (window), "destroy", @@ -535,6 +537,13 @@ main (int argc, char **argv) new_testrgb_window (pixbuf, NULL); ++xpmp; } + + /* Test loading from inline data. */ + pixbuf = gdk_pixbuf_new_from_inline (apple_red, FALSE, -1); + new_testrgb_window (pixbuf, "Red apple from inline data"); + + pixbuf = gdk_pixbuf_new_from_inline (gnome_foot, TRUE, sizeof (gnome_foot)); + new_testrgb_window (pixbuf, "Foot from inline data"); found_valid = TRUE; } else { -- cgit v1.2.1