[gnome-maps/wip/mlundblad/photon-geocode: 5/11] application: Initialize Photon geocode instance
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/photon-geocode: 5/11] application: Initialize Photon geocode instance
- Date: Sat, 4 May 2019 20:31:26 +0000 (UTC)
commit 41152eac843987dcd3c96ad271b3bed646d1509a
Author: Marcus Lundblad <ml update uu se>
Date: Tue Apr 23 23:13:07 2019 +0200
application: Initialize Photon geocode instance
src/application.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/application.js b/src/application.js
index 9cba29c..f23adac 100644
--- a/src/application.js
+++ b/src/application.js
@@ -36,6 +36,7 @@ const MainWindow = imports.mainWindow;
const Maps = imports.gi.GnomeMaps;
const OSMEdit = imports.osmEdit;
const OSMTypeSearchEntry = imports.osmTypeSearchEntry;
+const PhotonGeocode = imports.photonGeocode;
const PlaceStore = imports.placeStore;
const RoutingDelegator = imports.routingDelegator;
const RouteQuery = imports.routeQuery;
@@ -49,6 +50,7 @@ var placeStore = null;
var routingDelegator = null;
var geoclue = null;
var geocodeService = null;
+var photonGeocode = null;
var networkMonitor = null;
var checkInManager = null;
var contactStore = null;
@@ -231,6 +233,7 @@ var Application = GObject.registerClass({
routingDelegator = new RoutingDelegator.RoutingDelegator({ query: routeQuery });
geoclue = new Geoclue.Geoclue();
geocodeService = new GeocodeService.GeocodeService();
+ photonGeocode = new PhotonGeocode.PhotonGeocode();
networkMonitor = Gio.NetworkMonitor.get_default();
networkMonitor.connect('network-changed',
this._checkNetwork.bind(this));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]