[gnome-maps/wip/mlundblad/transit-no-later-alternatives: 20/22] transitPlan: Add a signal for no more alternatives
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/transit-no-later-alternatives: 20/22] transitPlan: Add a signal for no more alternatives
- Date: Mon, 22 May 2017 21:23:06 +0000 (UTC)
commit 301abf37192306a90489afa7d77493a1b08e8ed8
Author: Marcus Lundblad <ml update uu se>
Date: Wed Mar 22 22:01:00 2017 +0100
transitPlan: Add a signal for no more alternatives
This signal will be emitted when the user searches for
later or earlier transit itineraries and none are found
to intstruct the interface to retain previous results.
https://bugzilla.gnome.org/show_bug.cgi?id=780374
src/transitPlan.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index 9d1848d..13c7cc1 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -90,6 +90,7 @@ const Plan = new Lang.Class({
Signals: {
'update': {},
'reset': {},
+ 'no-more-results': {},
'itinerary-selected': { param_types: [GObject.TYPE_OBJECT] },
'itinerary-deselected': {}
},
@@ -120,6 +121,10 @@ const Plan = new Lang.Class({
this.emit('reset');
},
+ noMoreResults: function() {
+ this.emit('no-more-results');
+ },
+
selectItinerary: function(itinerary) {
this._selectedItinerary = itinerary;
this.emit('itinerary-selected', itinerary);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]