aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2005-08-16 11:47:55 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2005-08-16 11:47:55 +0800
commiteb491088f8aabcc369f09fd95c46a5794c575d6f (patch)
tree88e9981291487703a9915644d07dcb7bfba95669 /mail
parente77ae6c0f59b94265a3487eacea32abb1c312ab0 (diff)
downloadgsoc2013-evolution-eb491088f8aabcc369f09fd95c46a5794c575d6f.tar.gz
gsoc2013-evolution-eb491088f8aabcc369f09fd95c46a5794c575d6f.tar.zst
gsoc2013-evolution-eb491088f8aabcc369f09fd95c46a5794c575d6f.zip
Fix for bug #312545
2005-08-16 Srinivasa Ragavan <sragavan@novell.com> * mail/em-format-html-display.c: * widgets/misc/e-attachment*.c: Fix for bug #312545 svn path=/trunk/; revision=30126
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-format-html-display.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 1210d6a781..c2010278f7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-16 Srinivasa Ragavan <sragavan@novell.com>
+
+ * em-format-html-display.c (efhd_attachment_button): Sets the filename
+ in the attachment structure instead of the part
+
2005-08-15 Christian Kellner <gicmo@gnome.org>
* mail-send-recv.c: (get_folders): Honour the check_all
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 6221294998..e0a309d90f 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -1436,7 +1436,7 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje
if (!file) {
file = "attachment.dat";
- camel_mime_part_set_filename(new->body, file);
+ new->file_name = g_strdup(file);
}
tmp = g_hash_table_lookup (efhd->priv->files, file);
@@ -1454,9 +1454,8 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje
g_free (tmp_file);
g_hash_table_insert (efhd->priv->files, g_strdup(file), GUINT_TO_POINTER(count));
- camel_mime_part_set_filename(new->body, new_file);
-
- g_free(new_file);
+ g_free (new->file_name);
+ new->file_name = new_file;
} else {
g_hash_table_insert (efhd->priv->files, g_strdup(file), GUINT_TO_POINTER(1));
}