[evolution/webkit: 9/33] Fix default property value in EMFormatHTML
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit: 9/33] Fix default property value in EMFormatHTML
- Date: Thu, 22 Sep 2011 12:10:31 +0000 (UTC)
commit bcd0a61e94240a42bcb9ddd7350569d7b1daf75e
Author: Dan VrÃtil <dvratil redhat com>
Date: Wed Jul 27 18:22:36 2011 +0200
Fix default property value in EMFormatHTML
The correct default value of sender_photo is FALSE, otherwise the
feature could not be turned off.
Also fixes a possible crash when formatting is cancelled and proper
initialization of headers_collapsable property.
mail/em-format-html.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 7dc37a6..9746d9b 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -909,7 +909,7 @@ efh_class_init (EMFormatHTMLClass *class)
"show-sender-photo",
"Show Sender Photo",
NULL,
- TRUE,
+ FALSE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
@@ -958,7 +958,7 @@ efh_class_init (EMFormatHTMLClass *class)
g_object_class_install_property (
object_class,
- PROP_HEADERS_STATE,
+ PROP_HEADERS_COLLAPSABLE,
g_param_spec_boolean (
"headers-collapsable",
NULL,
@@ -1993,6 +1993,8 @@ efh_text_plain (EMFormat *emf,
flags = efh->text_html_flags;
dw = camel_medium_get_content ((CamelMedium *) part);
+ if (!dw)
+ return;
/* Check for RFC 2646 flowed text. */
if (camel_content_type_is(dw->mime_type, "text", "plain")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]