diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-06-08 10:02:50 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-06-08 10:02:50 +0200 |
commit | 9e21c2126a0df502ee57308a455b794a39b3682b (patch) | |
tree | 83130aa3a511e693e7c92fdec161d001bb9cccd1 | |
parent | af198b7f40dc3b075ae0290c5de51671bf11246f (diff) | |
download | clutter-9e21c2126a0df502ee57308a455b794a39b3682b.tar.gz |
tests: Cope with lack of ClutterPoint by defining a similar struct locally
ClutterPoint was added in 1.12
-rw-r--r-- | 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 52ee4d7bf..ab1f40d9d 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; }; |