summaryrefslogtreecommitdiff
path: root/src/mapBubble.js
diff options
context:
space:
mode:
authorJonas Danielsson <jonas@threetimestwo.org>2016-01-30 12:04:16 +0100
committerJonas Danielsson <jonas@threetimestwo.org>2016-01-30 12:12:12 +0100
commitf654384383efac5de127d2b65a54e32bde374e0b (patch)
tree6c9c58a45f0c4becfba2e27acfedc683ead5bed8 /src/mapBubble.js
parentc8133c4b2808b3888754b9dc8754ad60196f5da4 (diff)
downloadgnome-maps-f654384383efac5de127d2b65a54e32bde374e0b.tar.gz
Move away from using GtkDialog::run
Instead we can connect to the response signal and destroy the dialog in there. This seems to fix a buglet where we could not pan after dismissing dialogs. https://bugzilla.gnome.org/show_bug.cgi?id=760487
Diffstat (limited to 'src/mapBubble.js')
-rw-r--r--src/mapBubble.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mapBubble.js b/src/mapBubble.js
index 5d442157..74f8b598 100644
--- a/src/mapBubble.js
+++ b/src/mapBubble.js
@@ -142,8 +142,10 @@ const MapBubble = new Lang.Class({
button.visible = true;
button.connect('clicked', function() {
- dialog.run();
- dialog.hide();
+ dialog.connect('response', function() {
+ dialog.hide();
+ });
+ dialog.show_all();
});
},