[evolution] Bug 679726 - Can't unfold long recipient list in message window



commit db348eb976a071c5464d18ddc4a40be8edba5a8c
Author: Dan VrÃtil <dvratil redhat com>
Date:   Fri Jul 13 10:59:41 2012 +0200

    Bug 679726 - Can't unfold long recipient list in message window

 mail/e-mail-display.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index d265871..8c2a380 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]