[evolution/wip/webkit-composer: 365/372] EWebView: Don't need to check for WebKit version
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 365/372] EWebView: Don't need to check for WebKit version
- Date: Thu, 6 Feb 2014 11:54:11 +0000 (UTC)
commit 5f7710f3de44ecca2270adf16969d9ed13aefe2f
Author: Tomas Popela <tpopela redhat com>
Date: Thu Feb 6 09:28:12 2014 +0100
EWebView: Don't need to check for WebKit version
e-util/e-web-view.c | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index c07fb1c..7e859d6 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -353,8 +353,6 @@ static void
web_view_init_web_settings (WebKitWebView *web_view)
{
WebKitWebSettings *web_settings;
- GObjectClass *class;
- GParamSpec *pspec;
web_settings = webkit_web_settings_new ();
@@ -367,19 +365,9 @@ web_view_init_web_settings (WebKitWebView *web_view)
"enable-offline-web-application-cache", FALSE,
"enable-site-specific-quirks", TRUE,
"enable-scripts", FALSE,
+ "respect-image-orientation", TRUE,
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 (web_settings);
- pspec = g_object_class_find_property (
- class, "respect-image-orientation");
- if (pspec != NULL) {
- g_object_set (
- G_OBJECT (web_settings),
- pspec->name, TRUE, NULL);
- }
-
g_object_bind_property (
web_settings, "enable-caret-browsing",
web_view, "caret-mode",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]