diff options
Diffstat (limited to 'libmateweather/weather.c')
-rw-r--r-- | libmateweather/weather.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libmateweather/weather.c b/libmateweather/weather.c index 5b7bbe4..86453fc 100644 --- a/libmateweather/weather.c +++ b/libmateweather/weather.c @@ -50,7 +50,6 @@ static void _weather_internal_check (void); - static inline void mateweather_gettext_init (void) { @@ -267,7 +266,6 @@ weather_sky_string (WeatherSky sky) return _(sky_str[(int)sky]); } - /* * Even though tedious, I switched to a 2D array for weather condition * strings, in order to facilitate internationalization, esp. for languages @@ -341,7 +339,6 @@ weather_conditions_string (WeatherConditions cond) /* Locals turned global to facilitate asynchronous HTTP requests */ - gboolean requests_init (WeatherInfo *info) { @@ -553,9 +550,7 @@ _weather_info_fill (WeatherInfo *info, info->cb_data = data; if (!info->session) { - info->session = soup_session_async_new (); - soup_session_add_feature_by_type (info->session, SOUP_TYPE_PROXY_RESOLVER_DEFAULT); - g_object_set (G_OBJECT (info->session), "ssl-use-system-ca-file", TRUE, NULL); + info->session = soup_session_new (); } metar_start_open (info); @@ -588,11 +583,9 @@ weather_info_clone (const WeatherInfo *info) clone = g_new (WeatherInfo, 1); - /* move everything */ memmove (clone, info, sizeof (WeatherInfo)); - /* special moves */ clone->location = weather_location_clone (info->location); /* This handles null correctly */ |