[gnome-maps] routing: Show marker on instruction selection
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] routing: Show marker on instruction selection
- Date: Tue, 2 Sep 2014 15:47:10 +0000 (UTC)
commit 4a2a8aaafeba28269b230664d3738f7587bd525a
Author: Dario Di Nucci <linkin88mail gmail com>
Date: Fri Aug 29 18:44:24 2014 +0200
routing: Show marker on instruction selection
https://bugzilla.gnome.org/show_bug.cgi?id=731068
src/sidebar.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/sidebar.js b/src/sidebar.js
index 651e14b..74efcdb 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -190,6 +190,11 @@ const Sidebar = new Lang.Class({
this._timeInfo.label = _("Estimated time: %s").format(Utils.prettyTime(route.time));
this._distanceInfo.label = Utils.prettyDistance(route.distance);
}).bind(this));
+
+ this._instructionList.connect('row-selected',(function(listbox, row) {
+ if (row)
+ this._mapView.showTurnPoint(row.turnPoint);
+ }).bind(this));
},
_clearInstructions: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]