Add webkit language settings

You can now set your prefered website languages in order.
It is also possible to enable spell checking in the same way.
This commit is contained in:
Quentin Rameau
2015-11-22 19:13:48 +01:00
parent 00f9dcdf43
commit 981ade6eeb
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -726,6 +726,13 @@ newview(Client *c, WebKitWebView *rv)
webkit_cookie_manager_set_accept_policy(
webkit_web_context_get_cookie_manager(context),
cookiepolicy_get());
/* languages */
webkit_web_context_set_preferred_languages(context,
preferedlanguages);
webkit_web_context_set_spell_checking_languages(context,
spellinglanguages);
webkit_web_context_set_spell_checking_enabled(context,
enablespellchecking);
g_signal_connect(G_OBJECT(context), "download-started",
G_CALLBACK(downloadstarted), c);