From ece738d6264e928bc15a9c5d10529f3aa1330be3 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Thu, 28 Mar 2019 22:40:49 +0100 Subject: Move WebkitSettings to config.h --- badwolf.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'badwolf.c') diff --git a/badwolf.c b/badwolf.c index cfade8c..be7aef0 100644 --- a/badwolf.c +++ b/badwolf.c @@ -312,28 +312,7 @@ new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web webkit_web_context_set_process_model(web_context, WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES); - WebKitSettings *settings = - webkit_settings_new_with_settings("default-charset", - "utf-8", - "enable-caret-browsing", - TRUE, - "enable-developer-extras", - TRUE, - "enable-java", - FALSE, - "enable-javascript", - FALSE, - "enable-plugins", - FALSE, - "javascript-can-access-clipboard", - FALSE, - "javascript-can-open-windows-automatically", - FALSE, - "media-playback-requires-user-gesture", - TRUE, - "minimum-font-size", - 9, - NULL); + WebKitSettings *settings = webkit_settings_new_with_settings(BADWOLF_WEBKIT_SETTINGS); browser->webView = WEBKIT_WEB_VIEW(g_object_new(WEBKIT_TYPE_WEB_VIEW, "web-context", -- cgit v1.3.1-23-gd82d