[clutter/clutter-1.10] tests: Cope with lack of ClutterPoint by defining a similar struct locally
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.10] tests: Cope with lack of ClutterPoint by defining a similar struct locally
- Date: Fri, 8 Jun 2012 08:42:20 +0000 (UTC)
commit 9e21c2126a0df502ee57308a455b794a39b3682b
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date: Fri Jun 8 10:02:50 2012 +0200
tests: Cope with lack of ClutterPoint by defining a similar struct locally
ClutterPoint was added in 1.12
tests/conform/events-touch.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/tests/conform/events-touch.c b/tests/conform/events-touch.c
index 52ee4d7..ab1f40d 100644
--- a/tests/conform/events-touch.c
+++ b/tests/conform/events-touch.c
@@ -43,7 +43,12 @@
#define TOUCH_POINTS 10
-static ClutterPoint gesture_points[] = {
+typedef struct Point {
+ float x;
+ float y;
+} Point;
+
+static Point gesture_points[] = {
{ 100., 100. },
{ 110., 100. },
{ 120., 100. },
@@ -61,7 +66,7 @@ typedef struct _State State;
struct _State
{
gboolean pass;
- ClutterPoint gesture_points_to_check[TOUCH_POINTS];
+ Point gesture_points_to_check[TOUCH_POINTS];
int gesture_points;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]