From 6d2c382788a4042d53f49a080acd11b499aa52f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Wed, 28 Mar 2012 18:38:11 +0200 Subject: WebKit port - port formatter and mail module --- mail/em-format-html-display.h | 49 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 4 deletions(-) (limited to 'mail/em-format-html-display.h') diff --git a/mail/em-format-html-display.h b/mail/em-format-html-display.h index ec29698d46..c1b22eec58 100644 --- a/mail/em-format-html-display.h +++ b/mail/em-format-html-display.h @@ -52,6 +52,51 @@ G_BEGIN_DECLS typedef struct _EMFormatHTMLDisplay EMFormatHTMLDisplay; typedef struct _EMFormatHTMLDisplayClass EMFormatHTMLDisplayClass; typedef struct _EMFormatHTMLDisplayPrivate EMFormatHTMLDisplayPrivate; +typedef struct _EMFormatAttachmentBarPURI EMFormatAttachmentBarPURI; +typedef struct _EMFormatAttachmentPURI EMFormatAttachmentPURI; +typedef struct _EMFormatSMIMEPURI EMFormatSMIMEPURI; + +struct _EMFormatAttachmentBarPURI { + EMFormatPURI puri; + + EAttachmentStore *store; +}; + +struct _EMFormatAttachmentPURI { + EMFormatPURI puri; + + const EMFormatHandler *handle; + + const gchar *snoop_mime_type; + + /* for the > and V buttons */ + GtkWidget *forward, *down; + guint shown : 1; + + /* Attachment */ + EAttachment *attachment; + gchar *attachment_view_part_id; + gchar *description; + + /* image stuff */ + gint fit_width; + gint fit_height; + GtkImage *image; + GtkWidget *event_box; + + /* Optional Text Mem Stream */ + CamelStreamMem *mstream; +}; + +struct _EMFormatSMIMEPURI { + EMFormatPURI puri; + + gchar *description; + + gint signature; + CamelCipherValidity *valid; + GtkWidget *widget; +}; struct _EMFormatHTMLDisplay { EMFormatHTML parent; @@ -67,10 +112,6 @@ struct _EMFormatHTMLDisplayClass { GType em_format_html_display_get_type (void); EMFormatHTMLDisplay * em_format_html_display_new (void); -EAttachmentView * - em_format_html_display_get_attachment_view - (EMFormatHTMLDisplay *html_display, - const gchar *message_part_id); G_END_DECLS #endif /* EM_FORMAT_HTML_DISPLAY_H */ -- cgit v1.2.3