add raph@gimp.org's fix to the jpeg indexing routine

1999-07-15  Larry Ewing  <lewing@gimp.org>

	* src/io-jpeg.c (image_load): add raph@gimp.org's fix to the jpeg
	indexing routine

	* src/testpixbuf.c (main): fix up the file routines a little so
	that you can load multiple files given the file names
This commit is contained in:
Larry Ewing
1999-07-15 06:42:42 +00:00
committed by Larry Ewing
parent de2313faf3
commit bd943182b7
3 changed files with 29 additions and 5 deletions

View File

@ -122,6 +122,9 @@ new_testrgb_window (GdkPixBuf *pixbuf)
int
main (int argc, char **argv)
{
int i;
int found_valid = FALSE;
GdkPixBuf *pixbuf;
gtk_init (&argc, &argv);
@ -132,11 +135,24 @@ main (int argc, char **argv)
gtk_widget_set_default_colormap (gdk_rgb_get_cmap ());
gtk_widget_set_default_visual (gdk_rgb_get_visual ());
pixbuf = gdk_pixbuf_load_image ("test.gif");
new_testrgb_window (pixbuf);
i = 1;
for (i = 1; i < argc; i++)
{
if (argv[i])
{
pixbuf = gdk_pixbuf_load_image (argv[i]);
if (pixbuf)
{
new_testrgb_window (pixbuf);
found_valid = TRUE;
}
}
}
gtk_main ();
if (found_valid)
gtk_main ();
return 0;
}