On Mon, 2009-08-31 at 11:32 +0100, Emmanuele Bassi wrote: > On Mon, 2009-08-31 at 20:18 +1000, Davyd Madeley wrote: > > > It's possible that I can fix this without changing Clutter (need to > > think about it a little more), but I was wondering if anyone else saw a > > possible use for a clutter_actor_flush_cached_size() method, or similar. > > if you only need to flush the cached size (not the position), just call: > > clutter_actor_set_size (actor, -1, -1); > > this will unset the cached minimum and natural size of the actor and > will queue a relayout.
Yeah, the problem here is avoiding queuing the relayout. This could be something that only comes up in the interaction between Clutter and a toolkit. Things are mostly working now, but I think that the flushing that seems to get called from time to time (thus triggering relayouts) occasionally triggers an extra useless double expose events (allocation triggering exposes in some GTK+ widgets). I currently seem to have a choice between double-expose and working actor resizing/reparenting. --d -- Davyd Madeley Collabora Ltd., Melbourne, Australia http://www.collabora.co.uk/ -- To unsubscribe send a mail to [email protected]
