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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user