diff options
author | Mario Sanchez Prada <msanchez@igalia.com> | 2012-07-24 21:58:41 +0800 |
---|---|---|
committer | Mario Sanchez Prada <msanchez@igalia.com> | 2012-08-07 15:22:57 +0800 |
commit | 20261c398cb634a16755943148ae7f7688dc396a (patch) | |
tree | 3b3027868a78d08b8c8a9ccffcb2571558a33d8f /embed | |
parent | 40fbf156acaf8b42238ba2d10d9a620affce7b90 (diff) | |
download | gsoc2013-epiphany-20261c398cb634a16755943148ae7f7688dc396a.tar.gz gsoc2013-epiphany-20261c398cb634a16755943148ae7f7688dc396a.tar.zst gsoc2013-epiphany-20261c398cb634a16755943148ae7f7688dc396a.zip |
Port spell checking to WebKit2
https://bugzilla.gnome.org/show_bug.cgi?id=680368
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-prefs.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |