Commit 61223e29 authored by Matthias Clasen's avatar Matthias Clasen

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.
parent 306d1377
Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
* demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
only in response to an area_prepared signal.
2001-08-28 Alex Larsson <alexl@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init):
......
Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
* demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
only in response to an area_prepared signal.
2001-08-28 Alex Larsson <alexl@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init):
......
Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
* demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
only in response to an area_prepared signal.
2001-08-28 Alex Larsson <alexl@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init):
......
Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
* demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
only in response to an area_prepared signal.
2001-08-28 Alex Larsson <alexl@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init):
......
Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
* demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
only in response to an area_prepared signal.
2001-08-28 Alex Larsson <alexl@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init):
......
Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
* demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
only in response to an area_prepared signal.
2001-08-28 Alex Larsson <alexl@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init):
......
Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
* demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
only in response to an area_prepared signal.
2001-08-28 Alex Larsson <alexl@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init):
......
......@@ -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);
}
......
2001-08-21 Matthias Clasen <matthiasc@waldgeist.poet.de>
Tue Aug 28 20:10:31 2001 Matthias Clasen <matthiasc@poet.de>
Tue Aug 28 20:03:43 2001 Matthias Clasen <matthiasc@poet.de>
* test-loaders.c (test_loader): Catch errors at close time.
* test-loaders.c (main): Remove C++ comments.
2001-08-21 Matthias Clasen <matthiasc@poet.de>
* Makefile.am, gdk-pixbuf-io.c, pixbufloader_tga.def,
io-tga.c: Add tga loader, patch by Nicola Girardi. (#56067)
2001-08-20 Matthias Clasen <matthiasc@waldgeist.poet.de>
2001-08-20 Matthias Clasen <matthiasc@poet.de>
* test-images.h, test-loaders.c: Add ico and wbmp tests.
* io-jpeg.c (gdk_pixbuf__jpeg_image_save): Fail with a suitable
......
......@@ -148,7 +148,7 @@ test_loader (const guchar *bytes, gsize len, gboolean data_is_ok)
err = NULL;
did_fail = TRUE;
}
gdk_pixbuf_loader_close (loader, NULL);
gdk_pixbuf_loader_close (loader, &err);
if (err)
{
g_error_free (err);
......@@ -404,8 +404,8 @@ main (int argc, char **argv)
TEST (tiff1_test_1, FALSE);
#if 0
TEST_RANDOMLY_MODIFIED (valid_gif_test, FALSE); // these all break more or
TEST_RANDOMLY_MODIFIED (valid_png_test, FALSE); // less spectacularly, patched or not
TEST_RANDOMLY_MODIFIED (valid_gif_test, FALSE); /* these all break more or */
TEST_RANDOMLY_MODIFIED (valid_png_test, FALSE); /* less spectacularly, patched or not */
TEST_RANDOMLY_MODIFIED (valid_tiff1_test, FALSE);
#endif
......@@ -416,7 +416,7 @@ main (int argc, char **argv)
* the wbmp loader is broken
*/
#endif
TEST_RANDOMLY_MODIFIED (valid_jpeg_test, FALSE); // The jpeg loader does not break
TEST_RANDOMLY_MODIFIED (valid_jpeg_test, FALSE); /* The jpeg loader does not break */
#if 0
TEST_RANDOM (GIF_HEADER, 150, FALSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment