st-widget: Implement a proper allocate

Since an StWidget now has children, it needs to allocate those children
properly. Defer to the currently installed layout manager, like Clutter
does.

Now that we have something that allocates children in St, to prevent
double allocations, we use clutter_actor_set_allocation rather than
chaining up to StWidget::allocate.

https://bugzilla.gnome.org/show_bug.cgi?id=670034
This commit is contained in:
Jasper St. Pierre
2012-02-15 07:11:41 -05:00
parent cc2f5d19c8
commit ea19790828
12 changed files with 39 additions and 32 deletions

View File

@ -29,7 +29,7 @@ shell_stack_allocate (ClutterActor *self,
ClutterActorBox content_box;
GList *children, *iter;
CLUTTER_ACTOR_CLASS (shell_stack_parent_class)->allocate (self, box, flags);
clutter_actor_set_allocation (self, box, flags);
st_theme_node_get_content_box (theme_node, box, &content_box);