commit: f2fd43fd7335ceb6acdfd3f7483be616ae611406
parent: aa9d7cd7abb1c1bb2afab376194614ef0c5c9b6e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 18 Jul 2019 10:40:26 +0200
Sync javascript toggle button with default settings
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/badwolf.c b/badwolf.c
@@ -706,6 +706,9 @@ new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web
WebKitSettings *settings = webkit_settings_new_with_settings(BADWOLF_WEBKIT_SETTINGS);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(browser->javascript),
+ webkit_settings_get_enable_javascript(settings));
+
browser->webView = WEBKIT_WEB_VIEW(g_object_new(WEBKIT_TYPE_WEB_VIEW,
"web-context",
web_context,