}
#endif
-#if HAVE_LIBSOUP
+#if HAVE_LIBSOUP_2_23_1
/* The following code hooks up to any created cookie jar in order to
load and save cookies. This is *not* a generally advisable technique
but merely a preliminary workaround until WebKit exposes its
return 1;
}
- #if HAVE_LIBSOUP
+ #if HAVE_LIBSOUP_2_23_1
/* This is a nasty trick that allows us to manipulate cookies
even without having a pointer to the jar. */
soup_cookie_jar_get_type ();
old_jar_constructed_cb = G_OBJECT_CLASS (jar_class)->constructed;
G_OBJECT_CLASS (jar_class)->constructed = cookie_jar_constructed_cb;
}
+ #endif
+ #if HAVE_LIBSOUP
/* This is a nasty trick that allows us to manipulate preferences
even without having a pointer to the session. */
soup_session_get_type ();
gtk_widget_set_sensitive (entry, preferred_encoding == MIDORI_ENCODING_CUSTOM);
}
+#if HAVE_LIBSOUP_2_23_1
static void
midori_preferences_notify_identify_as_cb (MidoriWebSettings* settings,
GParamSpec* pspec,
gtk_widget_set_sensitive (entry, identify_as == MIDORI_IDENT_CUSTOM);
}
+#endif
#ifdef HAVE_OSX
static void
WIDGET_ADD (button, 1, 2, 5, 6);
/* Page "Network" */
- #if HAVE_LIBSOUP
+ #if HAVE_LIBSOUP_2_23_1
/* If a cookie jar was created, WebKit is using Soup */
if (g_type_get_qdata (SOUP_TYPE_COOKIE_JAR,
g_quark_from_static_string ("midori-has-jar")))
if option_enabled ('libsoup'):
conf.check_pkg ('libsoup-2.4', destvar='LIBSOUP', mandatory=False)
+ conf.check_pkg ('libsoup-2.4', destvar='LIBSOUP_2_23_1',
+ vnum='2.23.1', mandatory=False)
conf.check_pkg ('libsoup-2.4', destvar='LIBSOUP_2_25_2',
vnum='2.25.2', mandatory=False)
libsoup = ['not available','yes'][conf.env['HAVE_LIBSOUP'] == 1]