summaryrefslogtreecommitdiff
path: root/demos/testpixbuf.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-01-04 13:44:34 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-01-04 13:44:34 +0000
commit9b561cf21814043316317c15b276f3f88d1a08ed (patch)
tree7ddeab4228b145efdb9d5a60d6fa81031c0dcd95 /demos/testpixbuf.c
parent3a2cf4d9bd236a3fe233cfa40078d581ac45a175 (diff)
downloadgtk+-9b561cf21814043316317c15b276f3f88d1a08ed.tar.gz
Remove the size_prepared callback, to test incremental display.
2005-01-04 Matthias Clasen <mclasen@redhat.com> * demos/testpixbuf.c (main): Remove the size_prepared callback, to test incremental display. (new_testrgb_window): Return the drawing area, not the window, since we want to queue draws on the drawing area.
Diffstat (limited to 'demos/testpixbuf.c')
-rw-r--r--demos/testpixbuf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c
index 4088e344f3..5e211be747 100644
--- a/demos/testpixbuf.c
+++ b/demos/testpixbuf.c
@@ -427,7 +427,7 @@ new_testrgb_window (GdkPixbuf *pixbuf, gchar *title)
gtk_widget_show (window);
- return window;
+ return drawing_area;
}
@@ -508,7 +508,7 @@ extern void pixbuf_init ();
void size_func (GdkPixbufLoader *loader, gint width, gint height, gpointer data)
{
- gdk_pixbuf_loader_set_size (loader, width*2, height*2);
+ gdk_pixbuf_loader_set_size (loader, width*2, height*2);
}
@@ -525,7 +525,7 @@ main (int argc, char **argv)
gtk_init (&argc, &argv);
- gdk_rgb_set_verbose (TRUE);
+ // gdk_rgb_set_verbose (TRUE);
gtk_widget_set_default_colormap (gdk_rgb_get_colormap ());
@@ -611,8 +611,10 @@ main (int argc, char **argv)
status.buf = g_malloc (readlen);
+#if 0
g_signal_connect (pixbuf_loader, "size_prepared",
G_CALLBACK (size_func), NULL);
+#endif
g_signal_connect (pixbuf_loader, "area_prepared",
G_CALLBACK (progressive_prepared_callback),