[gimp] app: Make 'Overwrite foo.png' work
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] app: Make 'Overwrite foo.png' work
- Date: Sun, 5 Jul 2009 07:35:56 +0000 (UTC)
commit c4601b298dd0fe26837f9a59cf0a18ed70db89c8
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Jul 5 09:09:12 2009 +0200
app: Make 'Overwrite foo.png' work
In File -> Overwrite, we need to use the import source as the export
URI since there is no explicit export target given yet.
app/actions/file-commands.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/app/actions/file-commands.c b/app/actions/file-commands.c
index 5bf626a..cbc8b66 100644
--- a/app/actions/file-commands.c
+++ b/app/actions/file-commands.c
@@ -288,7 +288,14 @@ file_save_cmd_callback (GtkAction *action,
GimpPlugInProcedure *export_proc;
uri = g_object_get_data (G_OBJECT (image),
- GIMP_FILE_EXPORT_TO_URI_KEY);
+ GIMP_FILE_EXPORT_TO_URI_KEY);
+
+ if (!uri)
+ {
+ uri = g_object_get_data (G_OBJECT (image),
+ GIMP_FILE_IMPORT_SOURCE_URI_KEY);
+ }
+
if (uri)
{
export_proc =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]