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



commit 42e6c391e759eea0edea62b89f16dcfb21c25b3e
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 a63c07eb..980f5b31 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -89,7 +89,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 {
 
@@ -196,6 +197,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]