another XachPatch (TM) to fix revert and urls

-Yosh
This commit is contained in:
Manish Singh 1999-09-11 23:45:57 +00:00
parent d045b9667a
commit 3ce38aa009
5 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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)
{

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}