[lightsoff/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: [lightsoff/gnome-3-12] Fixed touch screen issue where taping didnt work, dependency bump
- Date: Tue, 25 Mar 2014 21:58:46 +0000 (UTC)
commit d0a005c6cf26d641542275ae97a0faf522e3b988
Author: Mario Wenzel <maweki gmail com>
Date: Tue Mar 25 16:38:02 2014 +0100
Fixed touch screen issue where taping didnt work, dependency bump
https://bugzilla.gnome.org/show_bug.cgi?id=724850
configure.ac | 6 +++---
src/board-view.vala | 7 ++++---
2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a64bcc6..1335d20 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,13 +16,13 @@ dnl Dependencies
dnl ###########################################################################
GTK_REQUIRED=3.10.0
-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(LIGHTSOFF, [
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/board-view.vala b/src/board-view.vala
index 1237d64..7fe0b99 100644
--- a/src/board-view.vala
+++ b/src/board-view.vala
@@ -95,7 +95,9 @@ public class BoardView : Clutter.Group
var l = new Light (off_texture, on_texture);
l.reactive = true;
- l.button_press_event.connect (light_button_press_cb);
+ var tap = new Clutter.TapAction ();
+ l.add_action (tap);
+ tap.tap.connect (light_button_press_cb);
float xx, yy;
get_light_position (x, y, out xx, out yy);
@@ -169,12 +171,11 @@ public class BoardView : Clutter.Group
return;
}
- private bool light_button_press_cb (Clutter.Actor actor, Clutter.ButtonEvent event)
+ private void light_button_press_cb (Clutter.TapAction tap, Clutter.Actor actor)
{
int x, y;
find_light ((Light) actor, out x, out y);
toggle_light (x, y);
- return false;
}
// Toggle a light and those in each cardinal direction around it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]