[gnome-maps/wip/mlundblad/transit-no-later-alternatives: 3/5] 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: 3/5] transitPlan: Add a signal for no more alternatives
- Date: Sun, 26 Mar 2017 20:13:16 +0000 (UTC)
commit 9d95c0299d97d19d6e41de9b8fd117762a1f25b9
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]