[gnome-maps] mapView: Convert to GObject signals



commit 1619ef19157574d0a0f3b5f3f17347c457b9a5ff
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Mon Feb 29 20:37:01 2016 +0100

    mapView: Convert to GObject signals
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762869

 src/mapView.js |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 3955e81..aa587da 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -69,11 +69,19 @@ const MapView = new Lang.Class({
     Extends: GtkChamplain.Embed,
     Properties: {
         'routeVisible': GObject.ParamSpec.boolean('routeVisible',
-                                                   'Route visible',
-                                                   'Visibility of route layers',
-                                                   GObject.ParamFlags.READABLE |
-                                                   GObject.ParamFlags.WRITABLE,
-                                                   false)
+                                                  'Route visible',
+                                                  'Visibility of route layers',
+                                                  GObject.ParamFlags.READABLE |
+                                                  GObject.ParamFlags.WRITABLE,
+                                                  false)
+    },
+    Signals: {
+        'user-location-changed': {},
+        'going-to': {},
+        'going-to-user-location': {},
+        'gone-to-user-location': {},
+        'view-moved': {},
+        'marker-selected': { param_types: [Champlain.Marker] }
     },
 
     get routeVisible() {
@@ -488,4 +496,3 @@ const MapView = new Lang.Class({
         this.emit('marker-selected', selectedMarker);
     }
 });
-Utils.addSignalMethods(MapView.prototype);


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