[gnome-maps/wip/mlundblad/photon-geocode: 3/4] application: Initialize Photon geocode instance



commit 78e65fbf882c4a44f7a5d7eef49a489b8b959690
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]