[gimp] Bug 589674 – "Send by Email" does not update "Filename"
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Bug 589674 – "Send by Email" does not update "Filename"
- Date: Sat, 1 Aug 2009 09:33:42 +0000 (UTC)
commit 9cddfeba7353187cc9fc6557133d8ab31ffc5dc5
Author: Christopher Howard <choward indicium us>
Date: Mon Jul 27 17:08:50 2009 -0800
Bug 589674 â?? "Send by Email" does not update "Filename"
Remove a conditional so that, in interactive mode, the Send by E-mail
feature always uses the name of the file as the default file field
value, instead of using the previously entered value of the field.
plug-ins/common/mail.c | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/plug-ins/common/mail.c b/plug-ins/common/mail.c
index bfcf403..717245c 100644
--- a/plug-ins/common/mail.c
+++ b/plug-ins/common/mail.c
@@ -232,19 +232,18 @@ run (const gchar *name,
{
case GIMP_RUN_INTERACTIVE:
gimp_get_data (PLUG_IN_PROC, &mail_info);
- if (! strlen (mail_info.filename))
- {
- gchar *filename = gimp_image_get_filename (image_ID);
-
- if (filename)
- {
- gchar *basename = g_path_get_basename (filename);
-
- g_strlcpy (mail_info.filename, basename, BUFFER_SIZE);
- g_free (basename);
- g_free (filename);
- }
- }
+ {
+ gchar *filename = gimp_image_get_filename (image_ID);
+
+ if (filename)
+ {
+ gchar *basename = g_path_get_basename (filename);
+
+ g_strlcpy (mail_info.filename, basename, BUFFER_SIZE);
+ g_free (basename);
+ g_free (filename);
+ }
+ }
if (! save_dialog ())
status = GIMP_PDB_CANCEL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]