[gnome-maps/wip/routing2: 2/8] Application: make RouteService a global



commit e32810a41d708a25c1ed8338da592041d0328f37
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 fabd7d5..40dfb9b 100644
--- a/src/application.js
+++ b/src/application.js
@@ -41,12 +41,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',
@@ -94,6 +96,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]