[gnome-maps/wip/accuracy-circle: 5/5] userLocation: Don't show accuracy circle unless selected
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/accuracy-circle: 5/5] userLocation: Don't show accuracy circle unless selected
- Date: Sun, 14 Apr 2013 15:59:35 +0000 (UTC)
commit 531309997f9ca5586380c89b92eb77a777ac3878
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Apr 14 18:46:00 2013 +0300
userLocation: Don't show accuracy circle unless selected
Only show accuracy circle if user location pin is selected by user.
src/userLocation.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/userLocation.js b/src/userLocation.js
index 5be0b7e..b0a5d17 100644
--- a/src/userLocation.js
+++ b/src/userLocation.js
@@ -97,6 +97,9 @@ const UserLocation = new Lang.Class({
alpha: 50 }));
accuracyMarker.set_location(this.latitude, this.longitude);
accuracyMarker.set_reactive(false);
+ locationMarker.bind_property("selected",
+ accuracyMarker, "visible",
+ GObject.BindingFlags.SYNC_CREATE);
let allocSize = Lang.bind(this,
function(zoom) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]