Commit a6f1db10 authored by Seth Burgess's avatar Seth Burgess
Browse files

Made text appear when preview is generated. Fixes #25821.

parent c46974cf
2000-09-24 Seth Burgess <sjburges@gimp.org>
* fileops.c : made the dialog have the name of whatever file was last
selected on a multi-list. Also fixed a memory leak while I was in
there. Closes #25821.
2000-09-25 Sven Neumann <sven@gimp.org>
 
* app/resolution_calibrate.[ch]: new files. Code for the resolution
......
......@@ -1479,12 +1479,13 @@ file_open_genbutton_callback (GtkWidget *widget,
/* new mult-file preview make: */
{
GSList *list;
GSList *list, *toplist;
/* Have to read the clist before touching anything else */
list= clist_to_slist(GTK_CLIST(fs->file_list));
toplist = list;
/* Find a real base directory for the multiple selection */
gtk_file_selection_set_filename (fs, "");
......@@ -1531,13 +1532,24 @@ file_open_genbutton_callback (GtkWidget *widget,
_("(could not make preview)"));
}
}
g_free(full_filename);
list= g_slist_next(list);
}
list = toplist;
while (list)
{
if (!(g_slist_next(list)))
{
full_filename = g_strconcat (filedirname, G_DIR_SEPARATOR_S,
(char *) list->data, NULL);
gtk_file_selection_set_filename (fs, full_filename);
}
g_free(list->data);
list= g_slist_next(list);
}
g_slist_free(list);
list= NULL;
g_slist_free(toplist);
toplist= NULL;
}
gtk_widget_set_sensitive (GTK_WIDGET (fileload), TRUE);
......
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