[epiphany] ephy-embed-prefs: fix a couple of warnings



commit 1895c2084857baca6bbc5a04b82a7763328ac59c
Author: Xan Lopez <xan igalia com>
Date:   Fri Feb 22 10:25:09 2013 +0100

    ephy-embed-prefs: fix a couple of warnings

 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 ce5e8e9..e470e1f 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]