diff options
author | Jonas Danielsson <jonas@threetimestwo.org> | 2014-03-01 13:16:36 +0100 |
---|---|---|
committer | Jonas Danielsson <jonas@threetimestwo.org> | 2014-03-01 13:18:28 +0100 |
commit | fc91357161bbda5ac24bb2d5dd941206c5b165f8 (patch) | |
tree | 24942f9c0f718292e9cb1ee2012988929c3723e0 | |
parent | cfa4d2569cc9494f2e7b815f08c730e85d8807a7 (diff) | |
download | gnome-maps-wip/notifications-jonas.tar.gz |
Notification test patchwip/notifications-jonas
With this applied, try pushing the location button or changing base
layer.
https://bugzilla.gnome.org/show_bug.cgi?id=723996
-rw-r--r-- | src/mainWindow.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainWindow.js b/src/mainWindow.js index 6fdc1f35..f33e4e80 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -39,6 +39,7 @@ const PlaceStore = imports.placeStore; const Utils = imports.utils; const Config = imports.config; const ZoomControl = imports.zoomControl; +const Notification = imports.notification; const _ = imports.gettext.gettext; @@ -339,6 +340,7 @@ const MainWindow = new Lang.Class({ }, _onGotoUserLocationActivate: function() { + Application.notificationManager.showNotification(Notification.Type.NO_LOCATION); if (this.mapView.geoclue.userSetLocation) { Utils.once(this.mapView.geoclue, 'location-changed', @@ -358,6 +360,7 @@ const MainWindow = new Lang.Class({ _onMapTypeActivate: function(action, value) { action.set_state(value); let [mapType, len] = value.get_string(); + Application.notificationManager.showMessage("Changed base layer to " + mapType); this.mapView.setMapType(MapView.MapType[mapType]); }, |