[epiphany] Port spell checking to WebKit2
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Port spell checking to WebKit2
- Date: Tue, 7 Aug 2012 07:25:13 +0000 (UTC)
commit 20261c398cb634a16755943148ae7f7688dc396a
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Tue Jul 24 15:58:41 2012 +0200
Port spell checking to WebKit2
https://bugzilla.gnome.org/show_bug.cgi?id=680368
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 86d9d94..e7d7d93 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]