[evolution] Bug 676696 - Automatic EXIF image rotation doesn't work



commit 035fa295cd121615924fb64a219a8cbb06df9155
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Mar 14 18:30:50 2013 -0400

    Bug 676696 - Automatic EXIF image rotation doesn't work
    
    Requires WebKitGTK+ 2.0 to work again.

 e-util/e-web-view.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 38e578d..508681a 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;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]