[gnome-weather/mcatanzaro/#90: 2/2] Revert "app: Use find_nearest_city() instead of new_detached()"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather/mcatanzaro/#90: 2/2] Revert "app: Use find_nearest_city() instead of new_detached()"
- Date: Tue, 24 Mar 2020 18:58:46 +0000 (UTC)
commit 1efc471d9c34be9453b5e457fdebd973f5da632d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Mar 24 13:58:14 2020 -0500
Revert "app: Use find_nearest_city() instead of new_detached()"
This reverts commit f07286f13a3daf8fa5a44da8dfeef36e9df44ed0.
src/app/currentLocationController.js | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/app/currentLocationController.js b/src/app/currentLocationController.js
index 644ac63..67538d2 100644
--- a/src/app/currentLocationController.js
+++ b/src/app/currentLocationController.js
@@ -87,11 +87,10 @@ var CurrentLocationController = class CurrentLocationController {
_onLocationUpdated(simple) {
let geoclueLocation = simple.get_location();
- this.currentLocation = GWeather.Location.get_world()
- .find_nearest_city(
- geoclueLocation.latitude,
- geoclueLocation.longitude
- );
+ this.currentLocation = GWeather.Location.new_detached(geoclueLocation.description,
+ null,
+ geoclueLocation.latitude,
+ geoclueLocation.longitude);
this._world.currentLocationChanged(this.currentLocation);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]