diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2001-08-28 19:06:58 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2001-08-28 19:06:58 +0000 |
commit | 61223e291d90e317c104b0625d76bcf6bf2b26f5 (patch) | |
tree | d0b8a4b538c797e04dca58fe776ecce1b05e7566 /demos/testpixbuf.c | |
parent | 306d137756dd6fd3cb995bf80d8e57106dafd908 (diff) | |
download | gtk+-61223e291d90e317c104b0625d76bcf6bf2b26f5.tar.gz |
gdk-pixbuf/test-loaders.c (test_loader): Catch errors at close time.
gdk-pixbuf/test-loaders.c (main): Remove C++ comments.
demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
only in response to an area_prepared signal.
Diffstat (limited to 'demos/testpixbuf.c')
-rw-r--r-- | demos/testpixbuf.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c index a61491fdde..c1d55b64df 100644 --- a/demos/testpixbuf.c +++ b/demos/testpixbuf.c @@ -449,19 +449,15 @@ update_timeout(gpointer data) } - } else { /* Really done */ - - GdkPixbuf *pixbuf = gdk_pixbuf_loader_get_pixbuf (status->loader); - new_testrgb_window (pixbuf, "After progressive load"); - done = TRUE; - - } - + } + else + done = TRUE; + if (done) { - gtk_widget_queue_draw(*status->rgbwin); /* ignoring errors, we should not do that. */ gdk_pixbuf_loader_close (GDK_PIXBUF_LOADER (status->loader), NULL); - g_object_unref (G_OBJECT(status->loader)); + gtk_widget_queue_draw (*status->rgbwin); + g_object_unref (G_OBJECT (status->loader)); fclose (status->imagefile); g_free (status->buf); } |