[gnome-maps/wip/notifications-jonas: 4/4] Notification test patch
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/notifications-jonas: 4/4] Notification test patch
- Date: Mon, 24 Feb 2014 14:04:49 +0000 (UTC)
commit ee8c343f5b013eccd8b50f186332fcd43701f4e5
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Sat Feb 15 06:55:27 2014 +0100
Notification test patch
With this applied, try pushing the location button or changing base
layer.
https://bugzilla.gnome.org/show_bug.cgi?id=723996
src/mainWindow.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 6fdc1f3..f33e4e8 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]);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]