From 035fa295cd121615924fb64a219a8cbb06df9155 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 14 Mar 2013 18:30:50 -0400 Subject: Bug 676696 - Automatic EXIF image rotation doesn't work Requires WebKitGTK+ 2.0 to work again. --- e-util/e-web-view.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'e-util') 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; } -- cgit