aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.h
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-04-29 16:35:05 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-04-29 16:35:05 +0800
commit7acaf0f527da269a34bf404647cde27f93c08d78 (patch)
tree7b15ae966836fbc228fd5a707066936d1f22cf41 /mail/em-format-html.h
parent21a896f292a2ed4ea1a58869b0711e0a46f8ab0d (diff)
downloadgsoc2013-evolution-7acaf0f527da269a34bf404647cde27f93c08d78.tar.gz
gsoc2013-evolution-7acaf0f527da269a34bf404647cde27f93c08d78.tar.zst
gsoc2013-evolution-7acaf0f527da269a34bf404647cde27f93c08d78.zip
** Fix for bug #511337
2008-04-29 Milan Crha <mcrha@redhat.com> ** Fix for bug #511337 * em-format-html.h: (EMFormatHTMLState), (struct _EMFormatHTML): * em-format-html.c: (efh_init), (efh_format_done), (efh_format_timeout): Track state of the object to recognize whether rendering new content or doing nothing. * em-format-html-display.c: (efhd_can_process_attachment), (efhd_attachment_show), (efhd_attachment_popup), (efhd_attachment_image), (efhd_attachment_button): Do nothing when EMFormatHTML object's state is RENDERING, the puri object instance is not valid anyway. svn path=/trunk/; revision=35437
Diffstat (limited to 'mail/em-format-html.h')
-rw-r--r--mail/em-format-html.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-format-html.h b/mail/em-format-html.h
index 7c419f3ba7..b7f44f6bf4 100644
--- a/mail/em-format-html.h
+++ b/mail/em-format-html.h
@@ -49,6 +49,11 @@ enum _em_format_html_header_flags {
EM_FORMAT_HTML_HEADER_BCC = 1<<2,
};
+typedef enum {
+ EM_FORMAT_HTML_STATE_NONE = 0,
+ EM_FORMAT_HTML_STATE_RENDERING
+} EMFormatHTMLState;
+
/* A HTMLJob will be executed in another thread, in sequence,
It's job is to write to its stream, close it if successful,
then exit */
@@ -196,6 +201,8 @@ struct _EMFormatHTML {
unsigned int hide_headers:1; /* no headers at all */
unsigned int show_icon:1; /* show an icon when the sender used Evo */
guint32 header_wrap_flags;
+
+ EMFormatHTMLState state; /* actual state of the object */
};
struct _EMFormatHTMLClass {