[gnome-maps] transitPlan: Add a signal for no more alternatives
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] transitPlan: Add a signal for no more alternatives
- Date: Sat, 10 Jun 2017 15:00:30 +0000 (UTC)
commit e15043c569c27bf8118681dbfe1fc2ff42cb34ae
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]