[gnome-shell] test-recorder: Explicitly make the clutter API coordinates doubles
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] test-recorder: Explicitly make the clutter API coordinates doubles
- Date: Thu, 3 May 2012 07:30:21 +0000 (UTC)
commit cb5941ec5578181d4726f762e4b06b9c9a4fca95
Author: Rui Matos <tiagomatos gmail com>
Date: Wed May 2 16:20:52 2012 +0200
test-recorder: Explicitly make the clutter API coordinates doubles
That's what clutter expects and it would crash otherwise.
https://bugzilla.gnome.org/show_bug.cgi?id=675301
src/test-recorder.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/test-recorder.c b/src/test-recorder.c
index ee7fcae..c223bf1 100644
--- a/src/test-recorder.c
+++ b/src/test-recorder.c
@@ -48,8 +48,8 @@ int main (int argc, char **argv)
animation = clutter_actor_animate (text,
CLUTTER_EASE_IN_OUT_QUAD,
3000,
- "x", 320,
- "y", 240,
+ "x", 320.0,
+ "y", 240.0,
NULL);
g_signal_connect (animation, "completed",
G_CALLBACK (on_animation_completed), NULL);
@@ -58,32 +58,32 @@ int main (int argc, char **argv)
"text", "Blue",
"font-name", "Sans 40px",
"color", &blue,
- "x", 640,
- "y", 0,
+ "x", 640.0,
+ "y", 0.0,
NULL);
clutter_actor_set_anchor_point_from_gravity (text, CLUTTER_GRAVITY_NORTH_EAST);
clutter_actor_add_child (stage, text);
animation = clutter_actor_animate (text,
CLUTTER_EASE_IN_OUT_QUAD,
3000,
- "x", 320,
- "y", 240,
+ "x", 320.0,
+ "y", 240.0,
NULL);
text = g_object_new (CLUTTER_TYPE_TEXT,
"text", "Green",
"font-name", "Sans 40px",
"color", &green,
- "x", 0,
- "y", 480,
+ "x", 0.0,
+ "y", 480.0,
NULL);
clutter_actor_set_anchor_point_from_gravity (text, CLUTTER_GRAVITY_SOUTH_WEST);
clutter_actor_add_child (stage, text);
animation = clutter_actor_animate (text,
CLUTTER_EASE_IN_OUT_QUAD,
3000,
- "x", 320,
- "y", 240,
+ "x", 320.0,
+ "y", 240.0,
NULL);
recorder = shell_recorder_new (CLUTTER_STAGE (stage));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]