[gnome-mines/gnome-3-36] Only allow long-press gesture on touchscreens (fixes #50)



commit 8a6e3f3a05bd56ac6a1ccd804c8beb1b44651c71
Author: Robert Roth <robert roth bee-tf ro>
Date:   Tue Jun 9 13:47:49 2020 +0300

    Only allow long-press gesture on touchscreens (fixes #50)

 src/tile.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/tile.vala b/src/tile.vala
index b2c0be7..3eadf36 100644
--- a/src/tile.vala
+++ b/src/tile.vala
@@ -24,6 +24,7 @@ public class Tile : Gtk.Button
         can_focus = false;
         add_class ("tile");
         _gesture = new Gtk.GestureLongPress (this);
+        _gesture.touch_only = true;
         _gesture.pressed.connect((x, y) =>
         {
              tile_long_pressed (prow, pcol);


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