[gnome-maps/wip/mlundblad/photon-geocode: 4/9] WIP: placeEntry: Use geocoder factory
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/photon-geocode: 4/9] WIP: placeEntry: Use geocoder factory
- Date: Sat, 25 May 2019 21:46:40 +0000 (UTC)
commit ea413bbc8cea7fb7508f23c74587cc3ec4c035ee
Author: Marcus Lundblad <ml update uu se>
Date: Tue Apr 23 23:13:39 2019 +0200
WIP: placeEntry: Use geocoder factory
src/placeEntry.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/placeEntry.js b/src/placeEntry.js
index 4a08859..aac48c8 100644
--- a/src/placeEntry.js
+++ b/src/placeEntry.js
@@ -41,7 +41,7 @@ var PlaceEntry = GObject.registerClass({
'The selected place',
GObject.ParamFlags.READABLE |
GObject.ParamFlags.WRITABLE,
- Geocode.Place)
+ GeocodeGlib.Place)
}
}, class PlaceEntry extends Gtk.SearchEntry {
@@ -178,7 +178,7 @@ var PlaceEntry = GObject.registerClass({
}
if (this.text.startsWith('geo:')) {
- let location = new Geocode.Location();
+ let location = new GeocodeGlib.Location();
try {
location.set_from_uri(this.text);
@@ -207,6 +207,7 @@ var PlaceEntry = GObject.registerClass({
let bbox = this._mapView.view.get_bounding_box();
this._popover.showSpinner();
+
this._cancellable = new Gio.Cancellable();
GeocodeFactory.getGeocoder().search(this.text,
this._mapView.view.latitude,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]