[gnome-maps/wip/jonasdn/storedRoute: 114/118] placeFormatter: Format stored route



commit 8da8cb227f4a2f2dcba8e4b2dfc97b9c46fce5a2
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Thu Feb 12 20:44:07 2015 +0100

    placeFormatter: Format stored route

 src/placeFormatter.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/placeFormatter.js b/src/placeFormatter.js
index c454a95..c9fe112 100644
--- a/src/placeFormatter.js
+++ b/src/placeFormatter.js
@@ -20,9 +20,10 @@
  */
 
 const Geocode = imports.gi.GeocodeGlib;
-
 const Lang = imports.lang;
 
+const StoredRoute = imports.storedRoute;
+
 const PlaceFormatter = new Lang.Class({
     Name: "PlaceFormatter",
 
@@ -56,6 +57,9 @@ const PlaceFormatter = new Lang.Class({
     },
 
     getDetailsString: function() {
+        if (this._place instanceof StoredRoute.StoredRoute)
+            return this._place.viaString;
+
         return this.rows.map((function(row) {
             return row.map((function(prop) {
                 return this._place[prop];


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