summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@src.gnome.org>1999-11-04 19:22:45 +0000
committerJonathan Blandford <jrb@src.gnome.org>1999-11-04 19:22:45 +0000
commit5d0e9b4a2e5e62f51ae3528cd49cd31a35c4b1d8 (patch)
tree3ecdd91bc1b695ba9052f38c9cc42c0efdd8e008 /demos
parentd0ed72ee143dd9586ea42a937860c042bdd8fa74 (diff)
downloadgdk-pixbuf-5d0e9b4a2e5e62f51ae3528cd49cd31a35c4b1d8.tar.gz
fix .tiff loader.
add a testcase for the "updated_area"
Diffstat (limited to 'demos')
-rw-r--r--demos/testpixbuf.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c
index 8ccb40c5d..800697b48 100644
--- a/demos/testpixbuf.c
+++ b/demos/testpixbuf.c
@@ -445,6 +445,14 @@ progressive_prepared_callback(GdkPixbufLoader* loader, gpointer data)
return;
}
+
+static void
+progressive_updated_callback(GdkPixbufLoader* loader, guint x, guint y, guint width, guint height, gpointer data)
+{
+ g_print ("progressive_updated_callback:\n\t%d\t%d\t%d\t%d\n", x, y, width, height);
+ return;
+}
+
static int readlen = 1;
int
@@ -516,6 +524,11 @@ main (int argc, char **argv)
GTK_SIGNAL_FUNC(progressive_prepared_callback),
&rgb_window);
+ gtk_signal_connect(GTK_OBJECT(pixbuf_loader),
+ "area_updated",
+ GTK_SIGNAL_FUNC(progressive_updated_callback),
+ &rgb_window);
+
timeout = gtk_timeout_add(1000, update_timeout, &rgb_window);
file = fopen (argv[1], "r");