[gnome-maps] Revert "mainWindow: Print button in routing headerbar"
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Revert "mainWindow: Print button in routing headerbar"
- Date: Fri, 4 Sep 2020 20:43:31 +0000 (UTC)
commit edd1b4d9b2a26e9dd41ab2f6c20ca22943b8ecef
Author: Marcus Lundblad <ml update uu se>
Date: Fri Sep 4 22:21:03 2020 +0200
Revert "mainWindow: Print button in routing headerbar"
This reverts commit 2ce25d60eebc60ada069bfb213e2c2fac6231ecd.
data/ui/main-window.ui | 21 ---------------------
src/mainWindow.js | 5 -----
2 files changed, 26 deletions(-)
---
diff --git a/data/ui/main-window.ui b/data/ui/main-window.ui
index d8c30ea9..ffef9dec 100644
--- a/data/ui/main-window.ui
+++ b/data/ui/main-window.ui
@@ -91,27 +91,6 @@
</child>
</object>
</child>
- <child>
- <object class="GtkButton" id="routingHeaderBarPrintButton">
- <property name="name">print-route</property>
- <property name="can-focus">True</property>
- <property name="tooltip-text" translatable="yes" comments="Translators: This is a
tooltip">Print Route</property>
- <property name="action-name">win.print-route</property>
- <property name="valign">center</property>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="icon-name">document-print-symbolic</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
- </child>
</object>
</child>
</object>
diff --git a/src/mainWindow.js b/src/mainWindow.js
index c131ecb4..02d811ee 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -87,7 +87,6 @@ var MainWindow = GObject.registerClass({
'mapViewWrapper',
'noNetworkView',
'routingHeaderBar',
- 'routingHeaderBarPrintButton',
'actionBar',
'actionBarRevealer' ]
}, class MainWindow extends Gtk.ApplicationWindow {
@@ -418,10 +417,6 @@ var MainWindow = GObject.registerClass({
// Show routing headerbar when the leaflet is folded, showing only the
// routing sidebar
this._leaflet.connect('notify::folded', this._updateRoutingHeaderBar.bind(this));
-
- /* Show/hide the print button in the routing headerbar */
- this._mapView.bind_property('routeShowing', this._routingHeaderBarPrintButton,
- 'visible', GObject.BindingFlags.DEFAULT);
}
_saveWindowGeometry() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]