[gnome-maps] mapLocation: Rename addMarker() to show()



commit bc41c444334b5712f813072537669873ff402200
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Apr 15 04:24:05 2013 +0300

    mapLocation: Rename addMarker() to show()
    
    UserLocation now simply override the parent's show() method.

 src/mapLocation.js | 2 +-
 src/mapView.js     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mapLocation.js b/src/mapLocation.js
index 104f7ab..8b8d847 100644
--- a/src/mapLocation.js
+++ b/src/mapLocation.js
@@ -79,7 +79,7 @@ const MapLocation = new Lang.Class({
         this._view.go_to(this.latitude, this.longitude);
     },
 
-    addMarker: function(layer) {
+    show: function(layer) {
         let marker = new Champlain.Label();
         marker.set_text(this.description);
         marker.set_location(this.latitude, this.longitude);
diff --git a/src/mapView.js b/src/mapView.js
index 19662e9..c08f150 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -172,7 +172,7 @@ const MapView = new Lang.Class({
 
         locations.forEach(Lang.bind(this,
             function(location) {
-                location.addMarker(this._markerLayer);
+                location.show(this._markerLayer);
             }));
 
         if (locations.length == 1)


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