Commit 3ce38aa0 authored by Manish Singh's avatar Manish Singh
Browse files

another XachPatch (TM) to fix revert and urls

-Yosh
parent d045b966
Sat Sep 11 16:44:15 PDT 1999 Manish Singh <yosh@gimp.org>
* app/fileops.c
* plug-ins/common/url.c: another XachPatch (TM) to fix revert and
urls
Sat Sep 11 22:45:12 BST 1999 Andy Thomas <alt@gimp.org>
* app/nav_window.c
......
......@@ -527,10 +527,10 @@ file_revert_callback (GtkWidget *w,
g_message (_("Can't revert. No filename associated with this image"));
else
{
filename = gimage_filename (gdisplay->gimage);
raw_filename = g_basename (filename);
raw_filename = gimage_filename (gdisplay->gimage);
filename = g_basename (filename);
gimage = file_open_image (filename, raw_filename, RUN_INTERACTIVE);
gimage = file_open_image (raw_filename, raw_filename, RUN_INTERACTIVE);
if (gimage != NULL)
{
......
......@@ -186,7 +186,7 @@ load_image (char *filename)
return -1;
else
{
gimp_image_set_filename (params[1].data.d_int32, NULL);
gimp_image_set_filename (params[1].data.d_int32, filename);
return params[1].data.d_int32;
}
}
......@@ -186,7 +186,7 @@ load_image (char *filename)
return -1;
else
{
gimp_image_set_filename (params[1].data.d_int32, NULL);
gimp_image_set_filename (params[1].data.d_int32, filename);
return params[1].data.d_int32;
}
}
......@@ -186,7 +186,7 @@ load_image (char *filename)
return -1;
else
{
gimp_image_set_filename (params[1].data.d_int32, NULL);
gimp_image_set_filename (params[1].data.d_int32, filename);
return params[1].data.d_int32;
}
}
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