summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@dfupdate.se>2022-04-05 23:13:35 +0200
committerMarcus Lundblad <ml@dfupdate.se>2022-04-13 22:14:13 +0200
commita41b4949f1be90054b8c57e1c7ee5c98e6120d22 (patch)
tree0fea560e068dc62ea5e725df8c27b3c1b0c4347c
parent4cd9bcbcd63f5b62f3a94d2cd13dff795a349b01 (diff)
downloadgnome-maps-a41b4949f1be90054b8c57e1c7ee5c98e6120d22.tar.gz
sendToDialog: Remove check-in button
-rw-r--r--data/ui/send-to-dialog.ui7
-rw-r--r--src/sendToDialog.js17
2 files changed, 0 insertions, 24 deletions
diff --git a/data/ui/send-to-dialog.ui b/data/ui/send-to-dialog.ui
index 161f0eed..433643fb 100644
--- a/data/ui/send-to-dialog.ui
+++ b/data/ui/send-to-dialog.ui
@@ -80,13 +80,6 @@
<property name="hexpand">True</property>
</object>
</child>
- <child>
- <object class="GtkButton" id="checkInButton">
- <property name="visible">False</property>
- <property name="label" translatable="yes">Check In&#8230;</property>
- <property name="hexpand">True</property>
- </object>
- </child>
</object>
</child>
</object>
diff --git a/src/sendToDialog.js b/src/sendToDialog.js
index 10e2f298..202cb9f7 100644
--- a/src/sendToDialog.js
+++ b/src/sendToDialog.js
@@ -54,7 +54,6 @@ var SendToDialog = GObject.registerClass({
'summaryUrl',
'copyButton',
'emailButton',
- 'checkInButton',
'scrolledWindow' ]
}, class SendToDialog extends Gtk.Dialog {
@@ -66,9 +65,6 @@ var SendToDialog = GObject.registerClass({
this._mapView = params.mapView;
delete params.mapView;
- let showCheckIn = params.showCheckIn || false;
- delete params.showCheckIn;
-
params.use_header_bar = true;
super._init(params);
@@ -89,19 +85,6 @@ var SendToDialog = GObject.registerClass({
row.set_header(null);
});
- if (showCheckIn) {
- Application.checkInManager.bind_property('hasCheckIn',
- this._checkInButton, 'visible',
- GObject.BindingFlags.DEFAULT |
- GObject.BindingFlags.SYNC_CREATE);
-
- this._checkInButton.connect('clicked', () => {
- Application.checkInManager.showCheckInDialog(this.get_toplevel(),
- this._place,
- false);
- });
- }
-
this.connect('show', () => {
this._summaryLabel.label = this._getSummary();
let osmuri = GLib.markup_escape_text(this._getOSMURI(), -1);