Commit 3ef8358e authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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).
parent b1a04a5a
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);
}
......
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