[gnome-maps/wip/mlundblad/drop-checkin-support: 5/9] sendToDialog: Remove check-in button




commit b3bd30b0be7d7224e4b1a780c5beabbb86f1b40e
Author: Marcus Lundblad <ml dfupdate se>
Date:   Tue Apr 5 23:13:35 2022 +0200

    sendToDialog: Remove check-in button

 data/ui/send-to-dialog.ui |  7 -------
 src/sendToDialog.js       | 17 -----------------
 2 files changed, 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]