From 54a2910f896626046666ffa8d88f052acdb5c201 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 25 Jan 2001 17:07:23 +0000 Subject: Check if a message part's content is available, and if it's not, queue a * mail-format.c (mail_content_loaded): Check if a message part's content is available, and if it's not, queue a thread that will load it and then queue an idle-handler redisplay of the message. (call_handler_function): Call mail_content_loaded() on the part and don't try to display it if it's currently offline. (get_data_wrapper_text): Simplify a bit * mail-display.c (mail_display_queue_redisplay): rename and make non-static. (mail_display_redisplay): Use a "new and improved" way of preserving the GtkHTML scroll location. ("new and improved" is code for "gross and hackish", but there should be a real interface for this eventually.) (on_url_requested): Use mail_content_loaded() and don't write out offline cid: URLs * mail-identify.c (mail_identify_mime_part): Use mail_content_loaded and don't try to identify the data if it's offline. svn path=/trunk/; revision=7813 --- mail/mail.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/mail.h') diff --git a/mail/mail.h b/mail/mail.h index c80cabfa52..4015fd613a 100644 --- a/mail/mail.h +++ b/mail/mail.h @@ -40,6 +40,7 @@ void mail_format_mime_message (CamelMimeMessage *mime_message, MailDisplay *md); void mail_format_raw_message (CamelMimeMessage *mime_message, MailDisplay *md); +gboolean mail_content_loaded (CamelDataWrapper *wrapper, MailDisplay *display); typedef gboolean (*MailMimeHandlerFn) (CamelMimePart *part, const char *mime_type, @@ -61,7 +62,7 @@ char *mail_get_message_body (CamelDataWrapper *data, gboolean want_plain, gboolean *is_html); /* mail-identify */ -char *mail_identify_mime_part (CamelMimePart *part); +char *mail_identify_mime_part (CamelMimePart *part, MailDisplay *md); /* mail view */ GtkWidget *mail_view_create (CamelFolder *source, const char *uid, CamelMimeMessage *msg); -- cgit