[swell-foop/gnome-3-12] Fixed touch screen issue where taping didnt work, dependency bump
- From: Mario Wenzel <mariowenzel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [swell-foop/gnome-3-12] Fixed touch screen issue where taping didnt work, dependency bump
- Date: Thu, 27 Mar 2014 21:08:30 +0000 (UTC)
commit cd62f02ade5d57f83171b01959c452b20aa53605
Author: Mario Wenzel <maweki gmail com>
Date: Tue Mar 25 23:10:07 2014 +0100
Fixed touch screen issue where taping didnt work, dependency bump
https://bugzilla.gnome.org/show_bug.cgi?id=724832
configure.ac | 6 +++---
src/game-view.vala | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b0fe972..ad68060 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
diff --git a/src/game-view.vala b/src/game-view.vala
index 0a392a3..b62b3cf 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]