[gnome-maps/wip/mlundblad/transit-plugin-gtfs-local: 7/9] transitPlan: Add method to set progress status



commit a03c0cc65513cf98d1b8de9bd9553a9f9a2f40e0
Author: Marcus Lundblad <ml update uu se>
Date:   Fri Mar 20 23:58:37 2020 +0100

    transitPlan: Add method to set progress status

 src/transitPlan.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index 96ba2416..7d8a1e10 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -98,7 +98,8 @@ var Plan = GObject.registerClass({
         'no-more-results': {},
         'itinerary-selected': { param_types: [GObject.TYPE_OBJECT] },
         'itinerary-deselected': {},
-        'error': { param_types: [GObject.TYPE_STRING] }
+        'error': { param_types: [GObject.TYPE_STRING] },
+        'progress': { param_types: [GObject.TYPE_STRING] }
     }
 }, class Plan extends GObject.Object {
 
@@ -205,6 +206,10 @@ var Plan = GObject.registerClass({
         this.emit('error', _("No provider found for this route."));
     }
 
+    progress(msg) {
+        this.emit('progress', msg);
+    }
+
     _createBBox() {
         let bbox = new Champlain.BoundingBox();
         this._itineraries.forEach(function(itinerary) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]