[gimp] app: Update default save name according to spec



commit 7deab857b4c688325433945e0565538297c745fb
Author: Martin Nordholts <martinn src gnome org>
Date:   Thu Jul 2 22:07:30 2009 +0200

    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.

 app/widgets/gimpfiledialog.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpfiledialog.c b/app/widgets/gimpfiledialog.c
index 49bfd6f..ed3f869 100644
--- a/app/widgets/gimpfiledialog.c
+++ b/app/widgets/gimpfiledialog.c
@@ -527,7 +527,8 @@ gimp_file_dialog_set_save_image (GimpFileDialog *dialog,
        *
        *   1. Last Save a copy-name (applies only to Save a copy)
        *   2. Last Save name
-       *   3. The 'Export to' path
+       *   3. Last Export name
+       *   3. The source image path
        *   3. 'Untitled'
        */
 
@@ -543,6 +544,10 @@ gimp_file_dialog_set_save_image (GimpFileDialog *dialog,
                                       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)
         name_uri = gimp_image_get_uri (image); /* Untitled */
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]