app: Update default save name according to spec

Update default save name according to the spec which is
http://gui.gimp.org/index.php/Save_%2B_export_specification in case
someone forgot.
This commit is contained in:
Martin Nordholts 2009-07-02 22:07:30 +02:00
parent 631e128ddd
commit 7deab857b4
1 changed files with 6 additions and 1 deletions

View File

@ -527,7 +527,8 @@ gimp_file_dialog_set_save_image (GimpFileDialog *dialog,
* *
* 1. Last Save a copy-name (applies only to Save a copy) * 1. Last Save a copy-name (applies only to Save a copy)
* 2. Last Save name * 2. Last Save name
* 3. The 'Export to' path * 3. Last Export name
* 3. The source image path
* 3. 'Untitled' * 3. 'Untitled'
*/ */
@ -542,6 +543,10 @@ gimp_file_dialog_set_save_image (GimpFileDialog *dialog,
name_uri = g_object_get_data (G_OBJECT (image), name_uri = g_object_get_data (G_OBJECT (image),
GIMP_FILE_EXPORT_TO_URI_KEY); GIMP_FILE_EXPORT_TO_URI_KEY);
if (! name_uri)
name_uri = g_object_get_data (G_OBJECT (image),
GIMP_FILE_IMPORT_SOURCE_URI_KEY);
if (! name_uri) if (! name_uri)
name_uri = gimp_image_get_uri (image); /* Untitled */ name_uri = gimp_image_get_uri (image); /* Untitled */