[gnome-maps] MapView: Make Geoclue property public



commit b03b9d8779d27298afe85d29a36375fdbbe8746f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Aug 26 03:43:51 2013 +0300

    MapView: Make Geoclue property public
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706726

 src/mapView.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 6dd242e..1c6b994 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -83,10 +83,10 @@ const MapView = new Lang.Class({
         this._zoomControl = new ZoomControl.ZoomControl(this);
         overlay.add_overlay(this._zoomControl);
 
-        this._geoclue = new Geoclue.Geoclue();
+        this.geoclue = new Geoclue.Geoclue();
         this._updateUserLocation();
-        this._geoclue.connect("location-changed",
-                              this._updateUserLocation.bind(this));
+        this.geoclue.connect("location-changed",
+                             this._updateUserLocation.bind(this));
     },
 
     setMapType: function(mapType) {
@@ -141,10 +141,10 @@ const MapView = new Lang.Class({
     },
 
     _updateUserLocation: function() {
-        if (!this._geoclue.location)
+        if (!this.geoclue.location)
             return;
 
-        this._userLocation = new UserLocation.UserLocation(this._geoclue.location, this);
+        this._userLocation = new UserLocation.UserLocation(this.geoclue.location, this);
         this._userLocation.show(this._userLocationLayer);
         this.emit('user-location-changed');
     },


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