aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-23 02:42:56 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-27 14:16:52 +0800
commit6b0d293efafd3e197f37e90367f9e0b960bc208c (patch)
tree08e5289cc07cc15e82faeb863a8672c5c14689b6
parent20d7939ca37ce5919e1839c9dda2dcd8c4b6e887 (diff)
downloadgsoc2013-evolution-6b0d293efafd3e197f37e90367f9e0b960bc208c.tar
gsoc2013-evolution-6b0d293efafd3e197f37e90367f9e0b960bc208c.tar.gz
gsoc2013-evolution-6b0d293efafd3e197f37e90367f9e0b960bc208c.tar.bz2
gsoc2013-evolution-6b0d293efafd3e197f37e90367f9e0b960bc208c.tar.lz
gsoc2013-evolution-6b0d293efafd3e197f37e90367f9e0b960bc208c.tar.xz
gsoc2013-evolution-6b0d293efafd3e197f37e90367f9e0b960bc208c.tar.zst
gsoc2013-evolution-6b0d293efafd3e197f37e90367f9e0b960bc208c.zip
EMailPrinter: Disable frame flattening directly.
Not worth having dedicated EWebView APIs for this.
-rw-r--r--mail/e-mail-printer.c11
1 files changed, 10 insertions, 1 deletions
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));