[gnome-maps] userLocation: Move showNGoTo() to parent MapLocation
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] userLocation: Move showNGoTo() to parent MapLocation
- Date: Mon, 15 Apr 2013 01:30:57 +0000 (UTC)
commit 22d3943865552b2768a02d919c62077b3bbcce96
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Apr 15 04:25:08 2013 +0300
userLocation: Move showNGoTo() to parent MapLocation
src/mapLocation.js | 5 +++++
src/userLocation.js | 5 -----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/mapLocation.js b/src/mapLocation.js
index 8b8d847..02e46d2 100644
--- a/src/mapLocation.js
+++ b/src/mapLocation.js
@@ -86,4 +86,9 @@ const MapLocation = new Lang.Class({
layer.add_marker(marker);
log("Added marker at " + this.latitude + ", " + this.longitude);
},
+
+ showNGoTo: function(animate, layer) {
+ this.show(layer);
+ this.goTo(animate);
+ },
});
diff --git a/src/userLocation.js b/src/userLocation.js
index ec8dc06..f5d18c1 100644
--- a/src/userLocation.js
+++ b/src/userLocation.js
@@ -107,11 +107,6 @@ const UserLocation = new Lang.Class({
this._zoomLevelId = this._view.connect("notify::zoom-level", Lang.bind(this,
this._updateAccuracyMarker));
},
- showNGoTo: function(animate, layer) {
- this.show(layer);
- this.goTo(animate);
- },
-
_updateAccuracyMarker: function() {
if (!this._locationMarker.get_selected()) {
this._accuracyMarker.hide();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]