[gimp: 18/27] app: Update 'Export to' to the most recent export URI



commit 11e5ecc5cab3b9a25a69ebd4a40ef3f17edcbd8d
Author: Martin Nordholts <martinn src gnome org>
Date:   Sun May 3 10:17:59 2009 +0200

    app: Update 'Export to' to the most recent export URI
    
    When an image have been successfully exported we shall set the 'Export
    to' URI to the target URI.
---
 app/dialogs/file-save-dialog.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/app/dialogs/file-save-dialog.c b/app/dialogs/file-save-dialog.c
index 2913c94..38c5d36 100644
--- a/app/dialogs/file-save-dialog.c
+++ b/app/dialogs/file-save-dialog.c
@@ -230,6 +230,11 @@ file_save_dialog_response (GtkWidget *save_dialog,
               g_object_set_data_full (G_OBJECT (dialog->image),
                                       GIMP_FILE_EXPORT_URI_KEY,
                                       g_strdup (uri), (GDestroyNotify) g_free);
+
+              /* Update 'Export to' to the last exported URI */
+              g_object_set_data_full (G_OBJECT (dialog->image),
+                                      GIMP_FILE_EXPORT_TO_URI_KEY,
+                                      g_strdup (uri), (GDestroyNotify) g_free);
             }
 
           g_object_set_data_full (G_OBJECT (dialog->image->gimp),



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