From 7cfdd131b55f7dd55607b5a809669b8e95843f3b Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan <sragavan@novell.com> Date: Mon, 25 Jul 2005 04:23:41 +0000 Subject: Added code to create a attachment bar. 2005-07-25 Srinivasa Ragavan <sragavan@novell.com> * em-format-html-display.c: (efhd_init) (efhd_finalise) () (efhd_attachment_image) (efhd_attachment_button) (efhd_format_attachment) Added code to create a attachment bar. * em-format-html.c: (efh_format_message) Added code to add bar at the beginning of the message. * em-popup.[ch]: (em_popup_target_new_attachments) (emp_part_popup_set_background) (emp_standard_menu_factory) Added code to handle the popup menu inside the attachment bar. * em-utils.[ch]: (em_utils_edit_filters) (emu_get_save_filesel) (em_utils_save_part) (em_utils_save_messages) Added code to handle save selected and save all options of the attachment bar. svn path=/trunk/; revision=29866 --- mail/em-format-html.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/em-format-html.c') diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 95190101ce..5e9b2626a9 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1830,6 +1830,8 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) static void efh_format_message(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const EMFormatHandler *info) { + const EMFormatHandler *handle; + /* TODO: make this validity stuff a method */ EMFormatHTML *efh = (EMFormatHTML *) emf; CamelCipherValidity *save = emf->valid, *save_parent = emf->valid_parent; @@ -1842,6 +1844,10 @@ static void efh_format_message(EMFormat *emf, CamelStream *stream, CamelMimePart if (!efh->hide_headers) efh_format_headers(efh, stream, (CamelMedium *)part); + + handle = em_format_find_handler(emf, "x-evolution/message/post-header"); + if (handle) + handle->handler(emf, stream, part, handle); camel_stream_printf(stream, EM_FORMAT_HTML_VPAD); em_format_part(emf, stream, part); -- cgit v1.2.3