From 20261c398cb634a16755943148ae7f7688dc396a Mon Sep 17 00:00:00 2001 From: Mario Sanchez Prada Date: Tue, 24 Jul 2012 15:58:41 +0200 Subject: Port spell checking to WebKit2 https://bugzilla.gnome.org/show_bug.cgi?id=680368 --- embed/ephy-embed-prefs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c index 86d9d94f3..e7d7d9379 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -515,6 +515,9 @@ webkit_pref_callback_enable_spell_checking (GSettings *settings, char *key, gpointer data) { +#ifdef HAVE_WEBKIT2 + WebKitWebContext *web_context = NULL; +#endif gboolean value = FALSE; char **languages = NULL; char *langs = NULL; @@ -530,7 +533,9 @@ webkit_pref_callback_enable_spell_checking (GSettings *settings, } #ifdef HAVE_WEBKIT2 - /* TODO: Spell checking */ + web_context = webkit_web_context_get_default (); + webkit_web_context_set_spell_checking_enabled (web_context, value); + webkit_web_context_set_spell_checking_languages (web_context, langs); #else g_object_set (webkit_settings, "enable-spell-checking", value, NULL); g_object_set (webkit_settings, "spell-checking-languages", langs, NULL); -- cgit v1.2.3