[gnome-maps] mapView: Maintain user location's selection



commit 8738c9f8c48fd23e4c981acd517884bdbf8abbe0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Apr 11 14:15:27 2014 +0100

    mapView: Maintain user location's selection
    
    If user location is selected, currently that selection is lost on
    updates. Lets maintain the selection un updates.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728039

 src/mapView.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 32f3bfe..3ca3a50 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -166,8 +166,10 @@ const MapView = new Lang.Class({
                                                     Geocode.PlaceType.UNKNOWN,
                                                     this.geoclue.location);
 
+        let selected = this._userLocation && this._userLocation.getSelected();
         this._userLocation = new UserLocation.UserLocation(place, this);
         this._userLocation.show(this._userLocationLayer);
+        this._userLocation.setSelected(selected);
         this.emit('user-location-changed');
     },
 


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