diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-prefs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c index ce5e8e90f..e470e1fd5 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -61,7 +61,9 @@ webkit_pref_callback_user_stylesheet (GSettings *settings, { gboolean value = FALSE; char *uri = NULL; +#ifndef HAVE_WEBKIT2 char *webkit_pref = data; +#endif value = g_settings_get_boolean (settings, key); @@ -597,7 +599,7 @@ webkit_pref_callback_enable_spell_checking (GSettings *settings, #ifdef HAVE_WEBKIT2 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, languages); + webkit_web_context_set_spell_checking_languages (web_context, (const char* const *)languages); #else g_object_set (webkit_settings, "enable-spell-checking", value, NULL); g_object_set (webkit_settings, "spell-checking-languages", langs, NULL); |