From e70e3982edf25a75bd93bdaf9205cca1167a3d4c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 15 Jan 2004 01:22:55 +0000 Subject: ** See bugs #51609 and #43515. 2004-01-15 Not Zed ** See bugs #51609 and #43515. * em-format-html-display.c (efhd_format_prefix): output flag for followup details above the message. (efhd_write_image): added to output icon data. * em-format-html.c (efh_format_do): call format_prefix before outputting the message in normal display mode. * em-format.c (emf_format_prefix): method called to format data before the first message output. Default impl == noop. svn path=/trunk/; revision=24230 --- mail/em-format.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mail/em-format.h') diff --git a/mail/em-format.h b/mail/em-format.h index d01b50bc7e..5d41ae0020 100644 --- a/mail/em-format.h +++ b/mail/em-format.h @@ -138,6 +138,10 @@ struct _EMFormatClass { /* start formatting a message */ void (*format_clone)(EMFormat *, struct _CamelFolder *, const char *uid, struct _CamelMimeMessage *, EMFormat *); + + /* called to insert prefix material, after format_clone but before format_message */ + void (*format_prefix)(EMFormat *, struct _CamelStream *); + /* some internel error/inconsistency */ void (*format_error)(EMFormat *, struct _CamelStream *, const char *msg); @@ -196,6 +200,7 @@ void em_format_pull_level(EMFormat *emf); #define em_format_format_clone(emf, folder, uid, msg, src) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_clone((emf), (folder), (uid), (msg), (src)) /* formats a new message */ #define em_format_format(emf, folder, uid, msg) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_clone((emf), (folder), (uid), (msg), NULL) +#define em_format_format_prefix(emf, stream) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_prefix((emf), (stream)) #define em_format_redraw(emf) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_clone((emf), \ ((EMFormat *)(emf))->folder, \ ((EMFormat *)(emf))->uid, \ -- cgit v1.2.3