scroll-actor: Paint children in pick mode

Chaining up to the parent's implementation of pick() is not enough: we
need to paint our children explicitly because of the compatibility mode
checks we use to avoid breaking custom containers.

https://bugzilla.gnome.org/show_bug.cgi?id=676088
This commit is contained in:
Emmanuele Bassi 2012-05-15 15:06:20 +01:00
parent 39a4929d75
commit c54c3047f8

View File

@ -155,10 +155,20 @@ static void
clutter_scroll_actor_pick (ClutterActor *actor,
const ClutterColor *pick_color)
{
ClutterActorIter iter;
ClutterActor *child;
clutter_scroll_actor_push_clip (actor);
CLUTTER_ACTOR_CLASS (clutter_scroll_actor_parent_class)->pick (actor, pick_color);
/* FIXME - this has to go away when we remove the vfunc check inside
* the ClutterActor::pick default implementation
*/
clutter_actor_iter_init (&iter, actor);
while (clutter_actor_iter_next (&iter, &child))
clutter_actor_paint (child);
cogl_clip_pop ();
}