[clutter-tutorial] Use floating point numbers when needed for clutter_actor_animate*().



commit 4845b80475c5e8eaaa0cbacb951b647c2db23575
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 19 18:01:58 2009 +0200

    Use floating point numbers when needed for clutter_actor_animate*().
    
    * docs/tutorial/clutter-tut.xml:
    * examples/animation/main.c (main): Use, for instance, 100.0 instead of
    100 for x and y values to clutter_actor_animate*(), as noticed by
    Neil Roberts on the clutter mailing list a while ago.

 COPYING                       |    2 +-
 ChangeLog                     |   11 ++++++++++-
 INSTALL                       |    2 +-
 docs/tutorial/clutter-tut.xml |    4 ++--
 examples/animation/main.c     |    4 ++--
 5 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/COPYING b/COPYING
index 0b6cbf8..915c8eb 120000
--- a/COPYING
+++ b/COPYING
@@ -1 +1 @@
-/usr/share/automake-1.10/COPYING
\ No newline at end of file
+/opt/gnome228/share/automake-1.11/COPYING
\ No newline at end of file
diff --git a/ChangeLog b/ChangeLog
index a368f83..556e825 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,15 @@
+2009-10-19  Murray Cumming  <murrayc murrayc com>
+
+	Use floating point numbers when needed for clutter_actor_animate*().
+
+	* docs/tutorial/clutter-tut.xml:
+	* examples/animation/main.c (main): Use, for instance, 100.0 instead of 
+	100 for x and y values to clutter_actor_animate*(), as noticed by 
+	Neil Roberts on the clutter mailing list a while ago.
+
 2009-08-26  Murray Cumming  <murrayc murrayc com>
 
-  Use clutter-1.0 and clutter-gtk-0.10.
+	Use clutter-1.0 and clutter-gtk-0.10.
 
 	* configure.ac: Use clutter-1.0 and clutter-gtk-0.10.
 	* examples/gtk_scrolling/main.c (main): gtk_clutter_viewport_new() takes 
diff --git a/INSTALL b/INSTALL
index 5bb6e7b..f43b0a2 120000
--- a/INSTALL
+++ b/INSTALL
@@ -1 +1 @@
-/usr/share/automake-1.10/INSTALL
\ No newline at end of file
+/opt/gnome228/share/automake-1.11/INSTALL
\ No newline at end of file
diff --git a/docs/tutorial/clutter-tut.xml b/docs/tutorial/clutter-tut.xml
index 46efb11..ae8fc2d 100644
--- a/docs/tutorial/clutter-tut.xml
+++ b/docs/tutorial/clutter-tut.xml
@@ -684,8 +684,8 @@ should reach, regardless of their initial values.</para>
 <programlisting>
 clutter_actor_animate (rectangle, CLUTTER_LINEAR, 1000,
   "opacity", 150,
-  "x", 100,
-  "y", 100,
+  "x", 100.0,
+  "y", 100.0,
   NULL);
 </programlisting>
 </para>
diff --git a/examples/animation/main.c b/examples/animation/main.c
index 953b8c7..e147ca9 100644
--- a/examples/animation/main.c
+++ b/examples/animation/main.c
@@ -67,8 +67,8 @@ int main(int argc, char *argv[])
   /* Create an animation to change the properties */
   ClutterAnimation* animation = 
     clutter_actor_animate_with_alpha (rect, alpha, 
-      "x", 150, 
-      "y", 150,
+      "x", 150.0, 
+      "y", 150.0,
       "opacity", 0,
       NULL);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]