[balsa] html: Webkit deprecation cleanup
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] html: Webkit deprecation cleanup
- Date: Thu, 29 Sep 2022 19:56:50 +0000 (UTC)
commit 655d01fb6c38cbeb7c6bfa571d50fcb2cfeeea0b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Sep 29 15:55:58 2022 -0400
html: Webkit deprecation cleanup
libbalsa/html.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/libbalsa/html.c b/libbalsa/html.c
index 67e943647..26ff5b159 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -729,13 +729,17 @@ lbh_web_view_new(LibBalsaWebKitInfo *info,
settings = webkit_web_view_get_settings(view);
/* might be paranoid - see note in function lbh_get_web_view_context() above */
webkit_settings_set_hardware_acceleration_policy(settings, WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER);
-#if WEBKIT_CHECK_VERSION(2, 31, 91)
+#if WEBKIT_CHECK_VERSION(2, 32, 0)
g_object_set(G_OBJECT(settings), "enable-plugins", FALSE, NULL);
-#else /* WEBKIT_CHECK_VERSION(2, 31, 91) */
+#else /* WEBKIT_CHECK_VERSION(2, 32, 0) */
webkit_settings_set_enable_plugins(settings, FALSE);
-#endif /* WEBKIT_CHECK_VERSION(2, 31, 91) */
+#endif /* WEBKIT_CHECK_VERSION(2, 32, 0) */
+#if WEBKIT_CHECK_VERSION(2, 38, 0)
+ g_object_set(G_OBJECT(settings), "enable-java", FALSE, NULL);
+#else /* WEBKIT_CHECK_VERSION(2, 38, 0) */
+ webkit_settings_set_enable_java(settings, FALSE);
+#endif /* WEBKIT_CHECK_VERSION(2, 38, 0) */
webkit_settings_set_enable_javascript(settings, FALSE);
- webkit_settings_set_enable_java(settings, FALSE);
webkit_settings_set_enable_hyperlink_auditing(settings, TRUE);
webkit_settings_set_auto_load_images(settings,
auto_load_ext_content || (g_atomic_int_get(&html_filter_found) != 0));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]