From 6b0d293efafd3e197f37e90367f9e0b960bc208c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 22 Jul 2013 14:42:56 -0400 Subject: EMailPrinter: Disable frame flattening directly. Not worth having dedicated EWebView APIs for this. --- mail/e-mail-printer.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mail/e-mail-printer.c b/mail/e-mail-printer.c index 8d1e903511..1ea021494d 100644 --- a/mail/e-mail-printer.c +++ b/mail/e-mail-printer.c @@ -353,12 +353,21 @@ mail_printer_new_web_view (const gchar *charset, const gchar *default_charset) { WebKitWebView *web_view; + WebKitWebSettings *web_settings; EMailFormatter *formatter; web_view = g_object_new ( E_TYPE_MAIL_DISPLAY, "mode", E_MAIL_FORMATTER_MODE_PRINTING, NULL); - e_web_view_set_enable_frame_flattening (E_WEB_VIEW (web_view), FALSE); + + /* XXX EMailDisplay enables frame flattening to prevent scrollable + * subparts in an email, which understandable. This resets it + * to allow scrollable subparts for reasons I don't understand. */ + web_settings = webkit_web_view_get_settings (web_view); + g_object_set ( + G_OBJECT (web_settings), + "enable-frame-flattening", FALSE, NULL); + e_mail_display_set_force_load_images (E_MAIL_DISPLAY (web_view), TRUE); formatter = e_mail_display_get_formatter (E_MAIL_DISPLAY (web_view)); -- cgit v1.2.3