aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-03-15 06:30:50 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-03-15 06:30:50 +0800
commit035fa295cd121615924fb64a219a8cbb06df9155 (patch)
tree269f32ca7c526dd268896518b8aa1c399708b6c7 /e-util
parent417d720906e9968cc9839b88d24f5c682c4f1753 (diff)
downloadgsoc2013-evolution-035fa295cd121615924fb64a219a8cbb06df9155.tar
gsoc2013-evolution-035fa295cd121615924fb64a219a8cbb06df9155.tar.gz
gsoc2013-evolution-035fa295cd121615924fb64a219a8cbb06df9155.tar.bz2
gsoc2013-evolution-035fa295cd121615924fb64a219a8cbb06df9155.tar.lz
gsoc2013-evolution-035fa295cd121615924fb64a219a8cbb06df9155.tar.xz
gsoc2013-evolution-035fa295cd121615924fb64a219a8cbb06df9155.tar.zst
gsoc2013-evolution-035fa295cd121615924fb64a219a8cbb06df9155.zip
Bug 676696 - Automatic EXIF image rotation doesn't work
Requires WebKitGTK+ 2.0 to work again.
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;
}