[gimp/gimp-2-6] 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/gimp-2-6] Bug 589674 – "Send by Email" does not update "Filename"
- Date: Sat, 1 Aug 2009 09:33:19 +0000 (UTC)
commit 01399cf87860db0b0b834b2d231b1dd1284e78fb
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Aug 1 11:34:58 2009 +0200
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 | 31 +++++++++++++++----------------
1 files changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/plug-ins/common/mail.c b/plug-ins/common/mail.c
index 3c67b16..2d01f06 100644
--- a/plug-ins/common/mail.c
+++ b/plug-ins/common/mail.c
@@ -230,22 +230,21 @@ run (const gchar *name,
if (strcmp (name, PLUG_IN_PROC) == 0)
{
switch (run_mode)
- {
- 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);
- }
- }
+ {
+ case GIMP_RUN_INTERACTIVE:
+ gimp_get_data (PLUG_IN_PROC, &mail_info);
+ {
+ 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]