diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-15 06:30:50 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-15 06:30:50 +0800 |
commit | 035fa295cd121615924fb64a219a8cbb06df9155 (patch) | |
tree | 269f32ca7c526dd268896518b8aa1c399708b6c7 | |
parent | 417d720906e9968cc9839b88d24f5c682c4f1753 (diff) | |
download | gsoc2013-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.
-rw-r--r-- | 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 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; } |