From eb491088f8aabcc369f09fd95c46a5794c575d6f Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 16 Aug 2005 03:47:55 +0000 Subject: Fix for bug #312545 2005-08-16 Srinivasa Ragavan * mail/em-format-html-display.c: * widgets/misc/e-attachment*.c: Fix for bug #312545 svn path=/trunk/; revision=30126 --- mail/ChangeLog | 5 +++++ mail/em-format-html-display.c | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'mail') 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 + + * em-format-html-display.c (efhd_attachment_button): Sets the filename + in the attachment structure instead of the part + 2005-08-15 Christian Kellner * 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)); } -- cgit v1.2.3