diff options
author | Dan Winship <danw@src.gnome.org> | 2001-01-26 01:07:23 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-01-26 01:07:23 +0800 |
commit | 54a2910f896626046666ffa8d88f052acdb5c201 (patch) | |
tree | eef885546b87b45417383993478c60ef6363b516 /mail/mail.h | |
parent | 9100d6bcdd7928ddd74587ba58367658816bffe5 (diff) | |
download | gsoc2013-evolution-54a2910f896626046666ffa8d88f052acdb5c201.tar gsoc2013-evolution-54a2910f896626046666ffa8d88f052acdb5c201.tar.gz gsoc2013-evolution-54a2910f896626046666ffa8d88f052acdb5c201.tar.bz2 gsoc2013-evolution-54a2910f896626046666ffa8d88f052acdb5c201.tar.lz gsoc2013-evolution-54a2910f896626046666ffa8d88f052acdb5c201.tar.xz gsoc2013-evolution-54a2910f896626046666ffa8d88f052acdb5c201.tar.zst gsoc2013-evolution-54a2910f896626046666ffa8d88f052acdb5c201.zip |
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
Diffstat (limited to 'mail/mail.h')
-rw-r--r-- | mail/mail.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |