[gimp] app: Move last-save URI management to file_save()
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] app: Move last-save URI management to file_save()
- Date: Sun, 3 May 2009 02:45:32 -0400 (EDT)
commit f6cd700dd606be2112d746b0293f7f181c782245
Author: Martin Nordholts <martinn src gnome org>
Date: Sat May 2 22:41:08 2009 +0200
app: Move last-save URI management to file_save()
Move the logic to remember the URI of the last saved file from
file_save_dialog_response() to the more central place file_save().
---
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 e2420c6..967a60d 100644
--- a/app/dialogs/file-save-dialog.c
+++ b/app/dialogs/file-save-dialog.c
@@ -141,10 +141,6 @@ 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 840ad46..e7e2b32 100644
--- a/app/file/file-save.c
+++ b/app/file/file-save.c
@@ -154,6 +154,10 @@ 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]