[gnome-maps/wip/mlundblad/dont-use-offscreen-window: 5/8] transitArrivalRow: Remove print handling
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/dont-use-offscreen-window: 5/8] transitArrivalRow: Remove print handling
- Date: Sun, 24 Mar 2019 21:31:05 +0000 (UTC)
commit 715f08f9770eaf9ec008836989a507d8d00eac83
Author: Marcus Lundblad <ml update uu se>
Date: Sun Mar 24 21:55:07 2019 +0100
transitArrivalRow: Remove print handling
Remove special-case handling for printing.
src/transitArrivalRow.js | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/src/transitArrivalRow.js b/src/transitArrivalRow.js
index 4ffa1d8..bb5333d 100644
--- a/src/transitArrivalRow.js
+++ b/src/transitArrivalRow.js
@@ -40,20 +40,12 @@ var TransitArrivalRow = GObject.registerClass({
this._mapView = params.mapView;
delete params.mapView;
- this._print = params.print;
- delete params.print;
-
super._init(params);
let lastLeg = this._itinerary.legs[this._itinerary.legs.length - 1];
this._arrivalLabel.label = Transit.getArrivalLabel(lastLeg);
this._timeLabel.label = lastLeg.prettyPrintArrivalTime();
- this._separator.visible = !this._print;
-
- /* allow more space for the label when printing */
- if (this._print)
- this._arrivalLabel.max_width_chars = -1;
this._eventBox.connect('event', (widget, event) => {
this._onEvent(event, lastLeg.toCoordinate);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]