diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-06-14 18:01:41 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-06-14 18:14:45 +0800 |
commit | 4f47f662f6daa7b9a3daed77d66b2022ae8398ab (patch) | |
tree | 24fe8456d16c4c42145771780c575f9ca9c7c126 /mail/e-mail-display.c | |
parent | 50ad565a15f4e630c06f78dddc6b3d00ea7ee34a (diff) | |
download | gsoc2013-evolution-4f47f662f6daa7b9a3daed77d66b2022ae8398ab.tar.gz gsoc2013-evolution-4f47f662f6daa7b9a3daed77d66b2022ae8398ab.tar.zst gsoc2013-evolution-4f47f662f6daa7b9a3daed77d66b2022ae8398ab.zip |
Bug #674887 - Hang on sender's photo lookup
Diffstat (limited to 'mail/e-mail-display.c')
-rw-r--r-- | mail/e-mail-display.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c index 33922d8c0a..1ca8bcc8a9 100644 --- a/mail/e-mail-display.c +++ b/mail/e-mail-display.c @@ -1048,6 +1048,7 @@ toggle_headers_visibility (WebKitDOMElement *button, WebKitDOMCSSStyleDeclaration *css_short, *css_full; gboolean expanded; const gchar *path; + gchar *css_value; document = webkit_web_view_get_dom_document (web_view); @@ -1064,9 +1065,10 @@ toggle_headers_visibility (WebKitDOMElement *button, return; css_full = webkit_dom_element_get_style (full_headers); - - expanded = (g_strcmp0 (webkit_dom_css_style_declaration_get_property_value ( - css_full, "display"), "block") == 0); + css_value = webkit_dom_css_style_declaration_get_property_value ( + css_full, "display"); + expanded = (g_strcmp0 (css_value, "block") == 0); + g_free (css_value); webkit_dom_css_style_declaration_set_property (css_full, "display", expanded ? "none" : "block", "", NULL); @@ -1233,6 +1235,9 @@ mail_parts_bind_dom (GObject *object, return; frame_name = webkit_web_frame_get_name (frame); + if (!frame_name || !*frame_name) + frame_name = ".message.headers"; + for (iter = display->priv->part_list->list; iter; iter = iter->next) { EMailPart *part = iter->data; |