summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2013-11-18 09:29:03 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2013-12-18 23:41:32 +0000
commita8a023e7f0a502566fe7d39c308f55cbe1662f37 (patch)
treefed1a0643aa33232e26f44f4b8251dc2aac13bf3
parent9124c1e8829e20082fa5c8d54e7f53e1460141cc (diff)
downloadlibgdata-a8a023e7f0a502566fe7d39c308f55cbe1662f37.tar.gz
core: Fix 'soup_gnome_features_2_26_get_type' is deprecated warning
GNOME 2.26 libsoup's feature was just the GNOME proxy resolver, which is now provided as default GIO extension point. More informations can be seen in: [0]: https://git.gnome.org/browse/libsoup/commit/?id=4ded0924fd82e006f31a8e9089fd297fac15eef9 [1]: https://bugzilla.gnome.org/show_bug.cgi?id=573685 https://bugzilla.gnome.org/show_bug.cgi?id=712565
-rw-r--r--README3
-rw-r--r--configure.ac4
-rw-r--r--gdata/gdata-service.c5
3 files changed, 4 insertions, 8 deletions
diff --git a/README b/README
index adb667bf..9bb8cfe3 100644
--- a/README
+++ b/README
@@ -16,11 +16,10 @@ Dependencies
• glib-2.0 ≥ 2.31.0
• libxml-2.0
• gio-2.0 ≥ 2.17.3
- • libsoup-2.4 ≥ 2.37.91
+ • libsoup-2.4 ≥ 2.42.0
• liboauth ≥ 0.9.4
If compiling with --enable-gnome (for GNOME support):
- • libsoup-gnome-2.4
• gcr-base-3
• goa-1.0 ≥ 3.2
diff --git a/configure.ac b/configure.ac
index 9e95debe..0cb5b487 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,7 +87,7 @@ AC_SUBST(GDK_PIXBUF_LIBS)
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= $GTK_REQS], [have_gtk=yes], [have_gtk=no])
AM_CONDITIONAL([HAVE_GTK], [test "x$have_gtk" = "xyes"])
-# GNOME support, which pulls in libsoup-gnome-2.4 to provide transparent proxy support and gcr-base-3 to provide non-pageable memory
+# GNOME support, which pulls in gcr-base-3 to provide non-pageable memory
AC_MSG_CHECKING(whether to build with GNOME support)
AC_ARG_ENABLE(gnome, AS_HELP_STRING([--enable-gnome], [Whether to enable GNOME support]),, enable_gnome=yes)
AC_MSG_RESULT($enable_gnome)
@@ -102,7 +102,7 @@ AM_CONDITIONAL([ENABLE_GOA], [test "x$enable_goa" = "xyes" -a "x$enable_gnome" =
if test "x$enable_gnome" = "xyes"; then
GNOME_PACKAGES_PUBLIC=""
- GNOME_PACKAGES_PRIVATE="libsoup-gnome-2.4 gcr-base-3 libxml-2.0"
+ GNOME_PACKAGES_PRIVATE="gcr-base-3 libxml-2.0"
if test "x$enable_goa" = "xyes"; then
GNOME_PACKAGES_PUBLIC="$GNOME_PACKAGES_PUBLIC"
GNOME_PACKAGES_PRIVATE="$GNOME_PACKAGES_PRIVATE goa-1.0 >= $GOA_REQS"
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 9c20aff1..7ea32845 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -45,7 +45,6 @@
#include <stdarg.h>
#ifdef HAVE_GNOME
-#include <libsoup/soup-gnome-features.h>
#define GCR_API_SUBJECT_TO_CHANGE
#include <gcr/gcr-base.h>
#endif /* HAVE_GNOME */
@@ -2165,9 +2164,7 @@ _gdata_service_build_session (void)
"timeout", 0,
NULL);
-#ifdef HAVE_GNOME
- soup_session_add_feature_by_type (session, SOUP_TYPE_GNOME_FEATURES_2_26);
-#endif /* HAVE_GNOME */
+ soup_session_add_feature_by_type (session, SOUP_TYPE_PROXY_RESOLVER_DEFAULT);
/* Log all libsoup traffic if debugging's turned on */
if (_gdata_service_get_log_level () > GDATA_LOG_MESSAGES) {