Commit 380341ee authored by Mario Wenzel's avatar Mario Wenzel

Fixed touch screen issue where taping didnt work, dependency bump

https://bugzilla.gnome.org/show_bug.cgi?id=724832
parent c625541b
......@@ -17,15 +17,15 @@ dnl ###########################################################################
GLIB_REQUIRED=2.36.0
GTK_REQUIRED=3.10
CLUTTER_REQUIRED=1.0.0
CLUTTER_GTK_REQUIRED=0.91.6
CLUTTER_REQUIRED=1.14.0
CLUTTER_GTK_REQUIRED=1.5.0
PKG_CHECK_MODULES(SWELL_FOOP, [
gmodule-export-2.0
glib-2.0 >= $GLIB_REQUIRED
gtk+-3.0 >= $GTK_REQUIRED
clutter-1.0 >= $CLUTTER_REQUIRED
clutter-gtk-1.0 >= $CLUTTER_REQUIRED
clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED
])
AC_CHECK_LIB([m],[floor])
......
......@@ -145,7 +145,9 @@ public class GameView : Clutter.Group
/* Respond to the user interactions */
tile.reactive = true;
tile.button_release_event.connect (remove_region_cb);
var tap = new Clutter.TapAction ();
tile.add_action (tap);
tap.tap.connect (remove_region_cb);
tile.enter_event.connect (tile_entered_cb);
tile.leave_event.connect (tile_left_cb);
......@@ -242,7 +244,7 @@ public class GameView : Clutter.Group
}
/* When the user click a tile, send the model to remove the connected tile. */
private bool remove_region_cb (Clutter.Actor actor, Clutter.ButtonEvent event)
private void remove_region_cb (Clutter.TapAction tap, Clutter.Actor actor)
{
var tile = (TileActor) actor;
......@@ -259,8 +261,6 @@ public class GameView : Clutter.Group
cursor_y = tile.tile.grid_y;
game.remove_connected_tiles (tile.tile);
return false;
}
/* When the mouse leaves the application window, reset all tiles to the default brightness */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment