summaryrefslogtreecommitdiff
path: root/src/mapBubble.js
diff options
context:
space:
mode:
authorJonas Danielsson <jonas@threetimestwo.org>2015-01-13 05:38:02 -0500
committerJonas Danielsson <jonas@threetimestwo.org>2015-02-01 01:08:57 +0100
commit021496c1c284f4a5da938fdbd127f026f3482484 (patch)
tree21465bda1158b2a6d92e2ae59b166d2f420e066b /src/mapBubble.js
parente797809fb41e786aa7815311055aebd6f054745d (diff)
downloadgnome-maps-021496c1c284f4a5da938fdbd127f026f3482484.tar.gz
Change shareDialog to sendToDialog
https://bugzilla.gnome.org/show_bug.cgi?id=741757
Diffstat (limited to 'src/mapBubble.js')
-rw-r--r--src/mapBubble.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mapBubble.js b/src/mapBubble.js
index b39a1481..a32693e6 100644
--- a/src/mapBubble.js
+++ b/src/mapBubble.js
@@ -30,13 +30,13 @@ const Mainloop = imports.mainloop;
const Application = imports.application;
const Place = imports.place;
const PlaceStore = imports.placeStore;
-const ShareDialog = imports.shareDialog;
+const SendToDialog = imports.sendToDialog;
const Utils = imports.utils;
const Button = {
NONE: 0,
ROUTE: 2,
- SHARE: 4,
+ SEND_TO: 4,
FAVORITE: 8,
CHECK_IN: 16
};
@@ -73,7 +73,7 @@ const MapBubble = new Lang.Class({
'bubble-content-area',
'bubble-button-area',
'bubble-route-button',
- 'bubble-share-button',
+ 'bubble-send-to-button',
'bubble-favorite-button',
'bubble-check-in-button']);
this._image = ui.bubbleImage;
@@ -84,8 +84,8 @@ const MapBubble = new Lang.Class({
else {
if (buttonFlags & Button.ROUTE)
this._initRouteButton(ui.bubbleRouteButton, routeFrom);
- if (buttonFlags & Button.SHARE)
- this._initShareButton(ui.bubbleShareButton);
+ if (buttonFlags & Button.SEND_TO)
+ this._initSendToButton(ui.bubbleSendToButton);
if (buttonFlags & Button.FAVORITE)
this._initFavoriteButton(ui.bubbleFavoriteButton);
if (buttonFlags & Button.CHECK_IN)
@@ -123,10 +123,10 @@ const MapBubble = new Lang.Class({
}).bind(this));
},
- _initShareButton: function(button) {
- let dialog = new ShareDialog.ShareDialog({ transient_for: this.get_toplevel(),
- place: this._place });
- if (!dialog.ensureShares())
+ _initSendToButton: function(button) {
+ let dialog = new SendToDialog.SendToDialog({ transient_for: this.get_toplevel(),
+ place: this._place });
+ if (!dialog.ensureApplications())
return;
button.visible = true;