gnucash master: Version-check some webkit properties.
John Ralls
jralls at code.gnucash.org
Sun Jul 16 15:47:37 EDT 2017
Updated via https://github.com/Gnucash/gnucash/commit/f80058bc (commit)
from https://github.com/Gnucash/gnucash/commit/b8fc9df8 (commit)
commit f80058bc275c30da592fa0d837e71a2811f6dfa9
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Jul 16 12:47:23 2017 -0700
Version-check some webkit properties.
Avoids error messages about undefined properties in tracefile.
diff --git a/src/html/gnc-html-webkit2.c b/src/html/gnc-html-webkit2.c
index aae4dde..70badc6 100644
--- a/src/html/gnc-html-webkit2.c
+++ b/src/html/gnc-html-webkit2.c
@@ -143,8 +143,12 @@ gnc_html_webkit_webview_new (void)
webkit_settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW (view));
g_object_set (G_OBJECT(webkit_settings),
"default-charset", "utf-8",
+#if WEBKIT_MINOR_VERSION >= 10
"allow-file-access-from-file-urls", TRUE,
+#endif
+#if WEBKIT_MINOR_VERSION >= 14
"allow-universal-access-from-file-urls", TRUE,
+#endif
"enable-java", FALSE,
"enable-page-cache", FALSE,
"enable-plugins", FALSE,
Summary of changes:
src/html/gnc-html-webkit2.c | 4 ++++
1 file changed, 4 insertions(+)
More information about the gnucash-changes
mailing list