diff options
author | Xan Lopez <xan@igalia.com> | 2013-02-22 17:25:09 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-02-22 17:25:09 +0800 |
commit | 1895c2084857baca6bbc5a04b82a7763328ac59c (patch) | |
tree | 88ef6e281837cba9c7f6ad19a76b924320b770d7 | |
parent | e0a97734593860c46630863bf647bcb78766fecf (diff) | |
download | gsoc2013-epiphany-1895c2084857baca6bbc5a04b82a7763328ac59c.tar gsoc2013-epiphany-1895c2084857baca6bbc5a04b82a7763328ac59c.tar.gz gsoc2013-epiphany-1895c2084857baca6bbc5a04b82a7763328ac59c.tar.bz2 gsoc2013-epiphany-1895c2084857baca6bbc5a04b82a7763328ac59c.tar.lz gsoc2013-epiphany-1895c2084857baca6bbc5a04b82a7763328ac59c.tar.xz gsoc2013-epiphany-1895c2084857baca6bbc5a04b82a7763328ac59c.tar.zst gsoc2013-epiphany-1895c2084857baca6bbc5a04b82a7763328ac59c.zip |
ephy-embed-prefs: fix a couple of warnings
-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); |