[gnome-maps] userLocation: Getter/setter for selection
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] userLocation: Getter/setter for selection
- Date: Fri, 11 Apr 2014 14:58:35 +0000 (UTC)
commit f30b71f3eb7ce2a9d28f8804dac5ea9d8607d22d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Apr 11 14:14:34 2014 +0100
userLocation: Getter/setter for selection
https://bugzilla.gnome.org/show_bug.cgi?id=728039
src/userLocation.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/userLocation.js b/src/userLocation.js
index d383479..1154020 100644
--- a/src/userLocation.js
+++ b/src/userLocation.js
@@ -116,6 +116,15 @@ const UserLocation = new Lang.Class({
this._zoomLevelId = this._view.connect("notify::zoom-level", this._updateAccuracyMarker.bind(this));
},
+ getSelected: function() {
+ return this._locationMarker && this._locationMarker.get_selected();
+ },
+
+ setSelected: function(value) {
+ if (this._locationMarker)
+ this._locationMarker.set_selected(value);
+ },
+
_updateAccuracyMarker: function() {
if (!this._locationMarker.get_selected()) {
this._accuracyMarker.hide();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]