You can now set your prefered website languages in order.
It is also possible to enable spell checking in the same way.
* @: accept no third party */
static int strictssl = 0; /* Refuse untrusted SSL connections */
+/* Languages */
+static int enablespellchecking = 0;
+static const char *spellinglanguages[] = { "en_US", NULL };
+static const char *preferedlanguages[] = { NULL };
+
/* Webkit default features */
static int enablescrollbars = 1;
static int enablecaretbrowsing = 1;
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);