GNOME Bugzilla – Bug 704625
Cannot assign a ClutterContent to a stage
Last modified: 2013-08-19 23:27:55 UTC
The ClutterStage::paint implementation overrides everything in order to clear the framebuffer; so, we actually paint the backgr ound color and any eventual content, then we clear it with the background color again, and then we traverse the children of the stage. We should be using the (private) ClutterRootNode that was added in 1.12 instead. We cannot override ClutterActor::paint_node(), because that is called after the background and content have been added to the local root node; instead, we need to special-case the top-level actors inside clutter_actor_paint_node().
Created attachment 249726 [details] [review] paint-nodes: Remove modelview from ClutterRootNode It's pointless, since RootNode sits at the top and there's no modelview to be set.
Created attachment 249727 [details] [review] Use paint nodes to set up the stage This allows to set a Content on a stage, and consolidates the paint code where it belongs.