aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-display.c
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-07-13 16:59:41 +0800
committerDan Vrátil <dvratil@redhat.com>2012-07-13 16:59:41 +0800
commitdb348eb976a071c5464d18ddc4a40be8edba5a8c (patch)
tree437b2f067ec6722e672d3323eeb5da81a892205e /mail/e-mail-display.c
parent41d72be8b460daf191d1ec1d29f84618694da7ac (diff)
downloadgsoc2013-evolution-db348eb976a071c5464d18ddc4a40be8edba5a8c.tar.gz
gsoc2013-evolution-db348eb976a071c5464d18ddc4a40be8edba5a8c.tar.zst
gsoc2013-evolution-db348eb976a071c5464d18ddc4a40be8edba5a8c.zip
Bug 679726 - Can't unfold long recipient list in message window
Diffstat (limited to 'mail/e-mail-display.c')
-rw-r--r--mail/e-mail-display.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index d265871602..8c2a3807b4 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -1231,14 +1231,11 @@ setup_DOM_bindings (GObject *object,
button = webkit_dom_document_get_element_by_id (
document, "__evo-collapse-headers-img");
- if (!button)
- return;
-
- d(printf("Conntecting to __evo-collapsable-headers-img::click event\n"));
-
- webkit_dom_event_target_add_event_listener (
- WEBKIT_DOM_EVENT_TARGET (button), "click",
- G_CALLBACK (toggle_headers_visibility), FALSE, web_view);
+ if (button) {
+ webkit_dom_event_target_add_event_listener (
+ WEBKIT_DOM_EVENT_TARGET (button), "click",
+ G_CALLBACK (toggle_headers_visibility), FALSE, web_view);
+ }
for (i = 0; i < 3; i++) {
gchar *id;