[gnome-maps] userLocation: Close user location bubble



commit f2d3aaf86d7e1af9673e08e7a11dec582a7edceb
Author: Dario Di Nucci <linkin88mail gmail com>
Date:   Wed Apr 30 00:48:25 2014 +0200

    userLocation: Close user location bubble
    
    Bind map clicking with user location marker unselection.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729228

 src/userLocation.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/userLocation.js b/src/userLocation.js
index 1154020..2269d56 100644
--- a/src/userLocation.js
+++ b/src/userLocation.js
@@ -84,6 +84,8 @@ const UserLocation = new Lang.Class({
         this._locationMarker.bind_property("selected",
                                            descriptionActor, "visible",
                                            GObject.BindingFlags.SYNC_CREATE);
+        this._view.connect('button-press-event',
+                           this.setSelected.bind(this, false));
 
         if (this.accuracy === 0) {
             layer.add_marker(this._locationMarker);


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