[shotwell] map: Stop map movements on drag motion



commit da0b428c2d01cf13ac8f4388ebd7f440e12d9372
Author: Andreas Brauchli <a brauchli elementarea net>
Date:   Thu Jun 30 15:34:10 2016 +0200

    map: Stop map movements on drag motion

 src/MapWidget.vala | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/MapWidget.vala b/src/MapWidget.vala
index d6ef69b3..bb6159ed 100644
--- a/src/MapWidget.vala
+++ b/src/MapWidget.vala
@@ -295,8 +295,13 @@ private class MapWidget : Gtk.Bin {
         return instance;
     }
 
+    public override bool drag_motion(Gdk.DragContext context, int x, int y, uint time) {
+        map_view.stop_go_to();
+        return true;
+    }
+
     public override void drag_data_received(Gdk.DragContext context, int x, int y,
-        Gtk.SelectionData selection_data, uint info, uint time) {
+            Gtk.SelectionData selection_data, uint info, uint time) {
         bool success = false;
         Gee.List<MediaSource>? media = unserialize_media_sources(selection_data.get_data(),
             selection_data.get_length());


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