summaryrefslogtreecommitdiff
path: root/src/checkInDialog.js
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2021-06-11 23:31:42 +0200
committerMarcus Lundblad <ml@update.uu.se>2021-06-13 22:27:57 +0200
commitfc630c60802fec615b34cba7ca04e50c9d6527fd (patch)
tree1a3a49f05d3c0847352fcb8b7844d590786e677f /src/checkInDialog.js
parent5b8b0e8f76952bb3065bff8148fcc6f9a0a3ed25 (diff)
downloadgnome-maps-fc630c60802fec615b34cba7ca04e50c9d6527fd.tar.gz
checkInDialog: Remove Facebook support
Since the API implemented in libgfbgraph is no longer supported by Facebook, and the Facebook login in gnome-online-accounts is no longer working we'll drop this support for the time being.
Diffstat (limited to 'src/checkInDialog.js')
-rw-r--r--src/checkInDialog.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/checkInDialog.js b/src/checkInDialog.js
index 7b65cf27..7ace6a7a 100644
--- a/src/checkInDialog.js
+++ b/src/checkInDialog.js
@@ -51,8 +51,6 @@ var CheckInDialog = GObject.registerClass({
'messageInfoLabel',
'messageInfoAccountImage',
'messageTextView',
- 'facebookOptionsGrid',
- 'facebookOptionsPrivacyComboBox',
'foursquareOptionsGrid',
'foursquareOptionsPrivacyComboBox',
'foursquareOptionsBroadcastFacebookCheckButton',
@@ -101,10 +99,6 @@ var CheckInDialog = GObject.registerClass({
this._placeListBox = new SocialPlaceListBox.SocialPlaceListBox({ visible: true });
this._placeScrolledWindow.add(this._placeListBox);
- Application.settings.bind('checkin-facebook-privacy',
- this._facebookOptionsPrivacyComboBox,
- 'active_id', Gio.SettingsBindFlags.DEFAULT);
-
Application.settings.bind('checkin-foursquare-privacy',
this._foursquareOptionsPrivacyComboBox,
'active_id', Gio.SettingsBindFlags.DEFAULT);
@@ -197,9 +191,7 @@ var CheckInDialog = GObject.registerClass({
this._placeListBox.matches = matches;
if (this._matchPlace) {
- if (this._account.get_account().provider_type === 'facebook')
- this._placeNotFoundLabel.label = _("Maps cannot find the place to check in to with Facebook. Please select one from this list.");
- else if (this._account.get_account().provider_type === 'foursquare')
+ if (this._account.get_account().provider_type === 'foursquare')
this._placeNotFoundLabel.label = _("Maps cannot find the place to check in to with Foursquare. Please select one from this list.");
} else
this._placeNotFoundInfoBar.hide();
@@ -230,8 +222,7 @@ var CheckInDialog = GObject.registerClass({
this._checkIn.place.name));
this._messageInfoAccountImage.gicon = Gio.Icon.new_for_string(account.provider_icon);
- let optionsGrids = { 'facebook': this._facebookOptionsGrid,
- 'foursquare': this._foursquareOptionsGrid };
+ let optionsGrids = { 'foursquare': this._foursquareOptionsGrid };
for (let provider in optionsGrids)
if (provider === account.provider_type)
@@ -249,9 +240,7 @@ var CheckInDialog = GObject.registerClass({
let message = this._messageTextView.buffer.text;
let privacy;
- if (this._account.get_account().provider_type === 'facebook')
- privacy = this._facebookOptionsPrivacyComboBox.active_id;
- else if (this._account.get_account().provider_type === 'foursquare')
+ if (this._account.get_account().provider_type === 'foursquare')
privacy = this._foursquareOptionsPrivacyComboBox.active_id;
let broadcastFacebook = this._foursquareOptionsBroadcastFacebookCheckButton.active;