stage: Restore the chain up inside allocate()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 20 Jan 2012 14:55:57 +0000 (14:55 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 20 Jan 2012 14:55:57 +0000 (14:55 +0000)
Group does not have a custom allocate() any more, so it would end up
calling the default allocate() implementation provided by ClutterActor
anyway.

clutter/clutter-stage.c

index 0089361..df7535a 100644 (file)
@@ -330,7 +330,7 @@ clutter_stage_allocate (ClutterActor           *self,
                     width, height,
                     origin_changed ? "changed" : "not changed");
 
-      clutter_actor_set_allocation (self, box, flags);
+      CLUTTER_ACTOR_CLASS (clutter_stage_parent_class)->allocate (self, box, flags);
 
       /* Ensure the window is sized correctly */
       if (!priv->is_fullscreen)
@@ -386,7 +386,7 @@ clutter_stage_allocate (ClutterActor           *self,
                     origin_changed ? "changed" : "not changed");
 
       /* and store the overridden allocation */
-      clutter_actor_set_allocation (self, &override, flags);
+      CLUTTER_ACTOR_CLASS (clutter_stage_parent_class)->allocate (self, &override, flags);
     }
 
   /* XXX: Until Cogl becomes fully responsible for backend windows