From 8c34a0c5574353e1b6e4dcff6aad28a9db51e8f7 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Fri, 1 Nov 2013 15:04:48 +0100 Subject: [PATCH] For gnome-shell version 3.6, we still need Soup.SeesionAsync with explicitely set ProxResolver . --- src/extension.js | 4 +++- src/prefs.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/extension.js b/src/extension.js index 75106ae..7f65aae 100644 --- a/src/extension.js +++ b/src/extension.js @@ -122,7 +122,9 @@ const WEATHER_CONV_MPS_IN_KPH = 3.6; const WEATHER_CONV_MPS_IN_KNOTS = 1.94384449; const WEATHER_CONV_MPS_IN_FPS = 3.2808399; -const _httpSession = new Soup.Session(); +// Soup session (see https://bugzilla.gnome.org/show_bug.cgi?id=661323#c64) (Simon Legner) +const _httpSession = new Soup.SessionAsync(); +Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault()); const WeatherMenuButton = new Lang.Class({ Name: 'WeatherMenuButton', diff --git a/src/prefs.js b/src/prefs.js index db2fc17..004e7d0 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -65,7 +65,9 @@ const WEATHER_URL_BASE = 'http://api.openweathermap.org/data/2.5/'; const WEATHER_URL_CURRENT = WEATHER_URL_BASE + 'weather'; const WEATHER_URL_FIND = WEATHER_URL_BASE + 'find'; -const _httpSession = new Soup.Session(); +// Soup session (see https://bugzilla.gnome.org/show_bug.cgi?id=661323#c64) (Simon Legner) +const _httpSession = new Soup.SessionAsync(); +Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault()); let mCities = null;