diff options
author | Havoc Pennington <hp@redhat.com> | 2000-10-04 16:39:44 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-10-04 16:39:44 +0000 |
commit | 502e5a8859b87b141f6f45b657769a77edea8493 (patch) | |
tree | e0fbf3a64a0dc47081ba2ba254bccf8e3a34abe4 /demos/testpixbuf.c | |
parent | 928c069883b807b67e964b90aa8dd3d5f9bc5bb2 (diff) | |
download | gtk+-502e5a8859b87b141f6f45b657769a77edea8493.tar.gz |
Fix copyrights
2000-10-04 Havoc Pennington <hp@redhat.com>
* gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
gtk/gtkiconfactory.c: Fix copyrights
* demos/testpixbuf.c: add inline pixbuf test
Diffstat (limited to 'demos/testpixbuf.c')
-rw-r--r-- | demos/testpixbuf.c | 11 |
1 files changed, 10 insertions, 1 deletions
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 <gtk/gtk.h> #include <gtk/gdk-pixbuf-loader.h> +#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 { |