[gnome-maps/wip/notifications: 4/4] Notification test patch
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/notifications: 4/4] Notification test patch
- Date: Mon, 10 Feb 2014 21:03:13 +0000 (UTC)
commit 4f7ecb65368bb436bdd87ead98bef87d9b586cc5
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Mon Feb 10 06:51:08 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 | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 04006d6..ed66ab7 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -354,6 +354,12 @@ const MainWindow = new Lang.Class({
},
_onGotoUserLocationActivate: function() {
+ this.showNotification("Turn on location services to find your location",
+ "Turn On",
+ function() {
+ log("Turning on location service!");
+ });
+ log(this._windowContent.get_children().length);
if (this.mapView.geoclue.userSetLocation) {
Utils.once(this.mapView.geoclue,
'location-changed',
@@ -373,6 +379,7 @@ const MainWindow = new Lang.Class({
_onMapTypeActivate: function(action, value) {
action.set_state(value);
let [mapType, len] = value.get_string();
+ this.showNotification("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]