[gnome-maps] userLocationMarker: Connect to the correct signal
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] userLocationMarker: Connect to the correct signal
- Date: Sat, 17 Feb 2018 10:47:22 +0000 (UTC)
commit 14fc29654c0e41bacca3f6f729c7e9447a8ac459
Author: Marcus Lundblad <ml update uu se>
Date: Sat Feb 17 11:45:17 2018 +0100
userLocationMarker: Connect to the correct signal
Connect the zoom-level signal on bound property in MapMarker.
Also get rid of a now unnessesarily stored signal handler ID.
src/userLocationMarker.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/userLocationMarker.js b/src/userLocationMarker.js
index 4285cd0..fc121b5 100644
--- a/src/userLocationMarker.js
+++ b/src/userLocationMarker.js
@@ -79,8 +79,8 @@ class UserLocationMarker extends MapMarker.MapMarker {
if (this.place.location.accuracy > 0) {
this._accuracyMarker = new AccuracyCircleMarker({ place: this.place });
this._accuracyMarker.refreshGeometry(this._view);
- this._zoomLevelId = this._view.connect('notify::view-zoom-level',
-
this._accuracyMarker.refreshGeometry.bind(this._accuracyMarker));
+ this.connect('notify::view-zoom-level',
+ () => this._accuracyMarker.refreshGeometry(this._view));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]