[gimp] app: Forget import source after saving as XCF



commit 631e128ddd1c6819ced5e9c6401e7246246da9d3
Author: Martin Nordholts <martinn src gnome org>
Date:   Thu Jul 2 21:33:00 2009 +0200

    app: Forget import source after saving as XCF
    
    Forget the import source after save. We interpret a save as that the
    user is not interested in being able to quickly export back to the
    original any longer. The effect of this is that if we have an
    'Overwrite' menu item, it becomes insensitive and set to 'Export to'.

 app/dialogs/file-save-dialog.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/file-save-dialog.c b/app/dialogs/file-save-dialog.c
index 29fa157..9ade2d8 100644
--- a/app/dialogs/file-save-dialog.c
+++ b/app/dialogs/file-save-dialog.c
@@ -208,6 +208,14 @@ file_save_dialog_response (GtkWidget *save_dialog,
               g_object_set_data_full (G_OBJECT (dialog->image->gimp),
                                       GIMP_FILE_SAVE_LAST_URI_KEY,
                                       g_strdup (uri), (GDestroyNotify) g_free);
+
+              /* Forget the import source when we save. We interpret a
+               * save as that the user is not interested in being able
+               * to quickly export back to the original any longer
+               */
+              g_object_set_data (G_OBJECT (dialog->image),
+                                 GIMP_FILE_IMPORT_SOURCE_URI_KEY,
+                                 NULL);
             }
           else
             {



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