[gnome-maps/wip/mlundblad/transit-routing: 30/32] mainWindow: Show the print button when a route is rendered
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/transit-routing: 30/32] mainWindow: Show the print button when a route is rendered
- Date: Sat, 17 Dec 2016 14:44:59 +0000 (UTC)
commit 14b87a6f0327eb873a238f79d47ea1d9d8c08a11
Author: Marcus Lundblad <ml update uu se>
Date: Thu Sep 15 21:59:17 2016 +0200
mainWindow: Show the print button when a route is rendered
Only show the print button when a route is rendered on the map.
This way, the print button is hidden until an itinerary is selected
when in transit mode.
Also, only activate printing with the accelerator when actually showing
a route.
https://bugzilla.gnome.org/show_bug.cgi?id=755808
src/mainWindow.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index e5127c1..511bccb 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -276,7 +276,7 @@ const MainWindow = new Lang.Class({
this._favoritesButton.sensitive = favoritesPopover.rows > 0;
}).bind(this));
- this._mapView.bind_property('routeVisible', this._printRouteButton,
+ this._mapView.bind_property('routeActive', this._printRouteButton,
'visible', GObject.BindingFlags.DEFAULT);
Application.geoclue.connect('notify::state',
@@ -401,7 +401,7 @@ const MainWindow = new Lang.Class({
},
_printRouteActivate: function() {
- if (this._mapView.routeVisible) {
+ if (this._mapView.routeActive) {
let operation = new PrintOperation.PrintOperation({ mainWindow: this });
}
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]