[gnome-maps/wip/routing2: 15/22] Application: make RouteService a global



commit e41896ed867c278e39566c9dc4ec070c2a633b7f
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sun Apr 20 03:51:45 2014 +0200

    Application: make RouteService a global
    
    Make the route service a global service.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728695

 src/application.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 7ae8dbc..6fe41e1 100644
--- a/src/application.js
+++ b/src/application.js
@@ -40,12 +40,14 @@ const Utils = imports.utils;
 const Path = imports.path;
 const Settings = imports.settings;
 const PlaceStore = imports.placeStore;
+const RouteService = imports.routeService;
 
 // used globally
 let application = null;
 let settings = null;
 let placeStore = null;
 let notificationManager = null;
+let routeService = null;
 
 const Application = new Lang.Class({
     Name: 'Application',
@@ -93,6 +95,7 @@ const Application = new Lang.Class({
 
         application = this;
         settings = new Settings.Settings('org.gnome.maps');
+        routeService = new RouteService.GraphHopper();
 
         Utils.initActions(this, [{
             properties: { name: 'quit' },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]