From 4cad2cfe818be68e2eb3ef038ab6177cf2fa0bc4 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 3 Jul 2019 19:07:21 +0800 Subject: avoid deprecated soup_session_async_new --- configure.ac | 2 +- libmateweather/weather.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index dd0d574..26e9166 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ AC_CANONICAL_HOST GLIB_REQUIRED=2.50.0 GTK_REQUIRED=3.22.0 -LIBSOUP_REQUIRED=2.34.0 +LIBSOUP_REQUIRED=2.54.0 GIO_REQUIRED=2.25.0 LIBXML_REQUIRED=2.6.0 diff --git a/libmateweather/weather.c b/libmateweather/weather.c index 20c46e9..1e9c7da 100644 --- a/libmateweather/weather.c +++ b/libmateweather/weather.c @@ -552,7 +552,7 @@ _weather_info_fill (WeatherInfo *info, info->cb_data = data; if (!info->session) { - info->session = soup_session_async_new (); + info->session = soup_session_new (); soup_session_add_feature_by_type (info->session, SOUP_TYPE_PROXY_RESOLVER_DEFAULT); } -- cgit v1.2.1