[gimp] Revert "app: Move last-save URI management to file_save()"



commit 82d327a550135820c313ac21e328d8800c0bab8d
Author: Martin Nordholts <martinn src gnome org>
Date:   Sun May 3 09:29:04 2009 +0200

    Revert "app: Move last-save URI management to file_save()"
    
    This reverts commit f6cd700dd606be2112d746b0293f7f181c782245. We
    can't save the last-save-URI on such a low level.
---
 app/dialogs/file-save-dialog.c |    4 ++++
 app/file/file-save.c           |    4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/dialogs/file-save-dialog.c b/app/dialogs/file-save-dialog.c
index 967a60d..e2420c6 100644
--- a/app/dialogs/file-save-dialog.c
+++ b/app/dialogs/file-save-dialog.c
@@ -141,6 +141,10 @@ file_save_dialog_response (GtkWidget *save_dialog,
                                        dialog->save_a_copy,
                                        FALSE))
         {
+          g_object_set_data_full (G_OBJECT (dialog->image->gimp),
+                                  GIMP_FILE_SAVE_LAST_URI_KEY,
+                                  g_strdup (uri), (GDestroyNotify) g_free);
+
           if (dialog)
             {
               GtkWindow *parent;
diff --git a/app/file/file-save.c b/app/file/file-save.c
index e7e2b32..840ad46 100644
--- a/app/file/file-save.c
+++ b/app/file/file-save.c
@@ -154,10 +154,6 @@ file_save (Gimp                *gimp,
       GimpDocumentList *documents;
       GimpImagefile    *imagefile;
 
-      /* Store the URI of the last successfully saved image */
-      g_object_set_data_full (G_OBJECT (gimp),
-                              GIMP_FILE_SAVE_LAST_URI_KEY,
-                              g_strdup (uri), (GDestroyNotify) g_free);
       if (save_a_copy)
         {
           /*  remember the "save-a-copy" filename for the next invocation  */



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