[gnome-weather/gnome-3-32] 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/gnome-3-32] Revert "app: Use find_nearest_city() instead of new_detached()"
- Date: Fri, 3 Apr 2020 18:19:44 +0000 (UTC)
commit 68f652ffa51288b3cbd783d696cb15e9252fce5f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Apr 3 13:19:10 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]