Commit fc913571 authored by Jonas Danielsson's avatar Jonas Danielsson
Browse files

Notification test patch

With this applied, try pushing the location button or changing base
layer.

https://bugzilla.gnome.org/show_bug.cgi?id=723996
parent cfa4d256
......@@ -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]);
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment