[gnome-maps/wip/mlundblad/transit-service-discovery: 8/13] transitPlan: Add properties for attribution
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/transit-service-discovery: 8/13] transitPlan: Add properties for attribution
- Date: Sat, 31 Aug 2019 10:55:46 +0000 (UTC)
commit 58414d84a69011e96b4085200eed0830333b48c0
Author: Marcus Lundblad <ml update uu se>
Date: Thu Aug 29 21:21:50 2019 +0200
transitPlan: Add properties for attribution
Add properties for attribution name
and URL.
src/transitPlan.js | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index d30f9db..c8aa673 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -96,6 +96,8 @@ var Plan = GObject.registerClass({
_init(params) {
super._init(params);
this.reset();
+ this._attribution = null;
+ this._attributionUrl = null;
}
get itineraries() {
@@ -106,6 +108,22 @@ var Plan = GObject.registerClass({
return this._selectedItinerary;
}
+ get attribution() {
+ return this._attribution;
+ }
+
+ set attribution(attribution) {
+ this._attribution = attribution;
+ }
+
+ get attributionUrl() {
+ return this._attributionUrl;
+ }
+
+ set attributionUrl(attributionUrl) {
+ this._attributionUrl = attributionUrl;
+ }
+
update(itineraries) {
this._itineraries = itineraries;
this.bbox = this._createBBox();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]