2007-09-27 Matthew Allum <mallum@openedhand.com>
authorMatthew Allum <mallum@openedhand.com>
Thu, 27 Sep 2007 22:15:25 +0000 (22:15 +0000)
committerMatthew Allum <mallum@openedhand.com>
Thu, 27 Sep 2007 22:15:25 +0000 (22:15 +0000)
        Merge from stable.

        * clutter/clutter-behaviour-path.c: (path_alpha_to_position)
        Fix uninitialized variable (#480, Gwenole Beauchesne)

ChangeLog
clutter/clutter-behaviour-path.c

index 196b997..4ebe75f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,18 @@
 2007-09-27  Matthew Allum  <mallum@openedhand.com>
 
+       Merge from stable.     
+
+        * clutter/clutter-behaviour-path.c: (path_alpha_to_position)
+        Fix uninitialized variable (#480, Gwenole Beauchesne)
+
+2007-09-27  Matthew Allum  <mallum@openedhand.com>
+
        * clutter/clutter-event.c:
        * clutter/clutter-event.h:
        * clutter/clutter-main.c:
        Further event tweaks;
        - Ref the event actor source
-       - Protect against off stage events (button releases)
+       - Protect against off stage events (button releases) (#511)
        - Move more into ClutterEventAny
        - Add a click count to button event (as yet unused)
        - Minor cleanups
index 835c0ab..aa47d42 100644 (file)
@@ -158,7 +158,7 @@ path_alpha_to_position (ClutterBehaviourPath *behave,
   ClutterBehaviourPathPrivate *priv = behave->priv;
   ClutterBehaviour *behaviour = CLUTTER_BEHAVIOUR (behave);
   GSList  *l;
-  gint     total_len, offset, dist_to_next, dist = 0;
+  gint     total_len, offset, dist = 0;
 
   /* FIXME: Optimise. Much of the data used here can be pre-generated  
    *        ( total_len, dist between knots ) when knots are added/removed.
@@ -209,6 +209,7 @@ path_alpha_to_position (ClutterBehaviourPath *behave,
 
   for (l = priv->knots; l != NULL; l = l->next)
     {
+      gint dist_to_next = 0;
       ClutterKnot *knot = l->data;
       
       if (l->next)