aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-web-view.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 38e578dbc7..508681acc6 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -2743,6 +2743,8 @@ WebKitWebSettings *
e_web_view_get_default_settings (void)
{
WebKitWebSettings *settings;
+ GObjectClass *class;
+ GParamSpec *pspec;
settings = webkit_web_settings_new ();
@@ -2757,6 +2759,17 @@ e_web_view_get_default_settings (void)
"enable-scripts", FALSE,
NULL);
+ /* This property was introduced in WebKitGTK 2.0,
+ * so check for it and enable it if it's present. */
+ class = G_OBJECT_GET_CLASS (settings);
+ pspec = g_object_class_find_property (
+ class, "respect-image-orientation");
+ if (pspec != NULL) {
+ g_object_set (
+ G_OBJECT (settings),
+ pspec->name, TRUE, NULL);
+ }
+
return settings;
}