mirror of https://github.com/GNOME/gimp.git
reverted my last change. I changed the function when porting everything to
2002-05-07 Michael Natterer <mitch@gimp.org> * app/core/gimpimage.c: reverted my last change. I changed the function when porting everything to URIs because it was documented to return NULL but didn't behave so. We need to add a new PDB function which returns the image's *display* name ("Untitled" for a NULL filename).
This commit is contained in:
parent
b1a04a5a80
commit
3ef8358e32
|
@ -1,3 +1,12 @@
|
|||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpimage.c: reverted my last change. I changed the
|
||||
function when porting everything to URIs because it was documented
|
||||
to return NULL but didn't behave so.
|
||||
|
||||
We need to add a new PDB function which returns the image's
|
||||
*display* name ("Untitled" for a NULL filename).
|
||||
|
||||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpimage.c (gimp_image_get_filename): get the image's
|
||||
|
|
|
@ -1060,9 +1060,10 @@ gimp_image_get_filename (const GimpImage *gimage)
|
|||
|
||||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
uri = gimp_image_get_uri (gimage);
|
||||
uri = gimp_object_get_name (GIMP_OBJECT (gimage));
|
||||
|
||||
g_return_val_if_fail (uri != NULL, NULL);
|
||||
if (! uri)
|
||||
return NULL;
|
||||
|
||||
return g_filename_from_uri (uri, NULL, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue