diff options
author | Quentin Rameau <quinq@fifth.space> | 2015-11-22 19:13:48 +0100 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2015-11-22 19:13:48 +0100 |
commit | 981ade6eeb0f975990b0d336bb6b43e6475d6c40 (patch) | |
tree | d583b58d6da19f787586823e58684e331bc8856b /surf.c | |
parent | 00f9dcdf439f85df4a2b1efef32e7422a671c26c (diff) |
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.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |