Fix multi-thumbnail code oversight causing double load-and-thumbnailing of

Wed Nov 17 20:07:08 GMT 1999  Adam D. Moss <adam@gimp.org>

	* app/fileops.c: Fix multi-thumbnail code oversight
	causing double load-and-thumbnailing of first/only image.
This commit is contained in:
GMT 1999 Adam D. Moss 1999-11-17 20:10:53 +00:00 committed by Adam D. Moss
parent 32ef77de24
commit 754af91ba1
2 changed files with 5 additions and 27 deletions

View File

@ -1,3 +1,8 @@
Wed Nov 17 20:07:08 GMT 1999 Adam D. Moss <adam@gimp.org>
* app/fileops.c: Fix multi-thumbnail code oversight
causing double load-and-thumbnailing of first/only image.
Wed Nov 17 17:29:35 1999 ape@spacetec.no (Asbjorn Pettersen)
* modules/colorsel_triangle.c (module_init): Removed most of the

View File

@ -1343,32 +1343,7 @@ genbutton_callback (GtkWidget *widget,
gimp_add_busy_cursors ();
gtk_widget_set_sensitive (GTK_WIDGET (fileload), FALSE);
if ((gimage_to_be_thumbed = file_open_image (filename,
g_basename(filename),
RUN_NONINTERACTIVE)))
{
tempbuf = make_thumb_tempbuf (gimage_to_be_thumbed);
RGBbuf = make_RGBbuf_from_tempbuf (tempbuf, &RGBbuf_w, &RGBbuf_h);
switch (thumbnail_mode)
{
case 0:
break;
default:
file_save_thumbnail (gimage_to_be_thumbed, filename, tempbuf);
}
set_preview (filename, RGBbuf, RGBbuf_w, RGBbuf_h);
gimage_delete (gimage_to_be_thumbed);
if (RGBbuf)
g_free (RGBbuf);
}
else
{
gtk_label_set_text (GTK_LABEL(open_options_label),
_("(could not make preview)"));
}
/* new mult-file preview make: */
{
@ -1376,8 +1351,6 @@ genbutton_callback (GtkWidget *widget,
gint rownum = 0;
gchar* temp;
/*printf("%d\n", GTK_CLIST(fs->file_list)->rows);*/
filedirname = g_dirname (filename);
while (row)