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:
Michael Natterer 2002-05-07 12:23:40 +00:00 committed by Michael Natterer
parent b1a04a5a80
commit 3ef8358e32
2 changed files with 12 additions and 2 deletions

View File

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

View File

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