Re: Muffling widget repaints



>I have a container which periodically loses some of its widgets and gains
>others, sometimes on the order of hundreds.  The changeover happens all at
>once (i.e. there's a big loop which does all the adding and destroying), but
>it's still pretty ugly and slow because sometimes many repaints are done.  I
>only care about the final repaint.

by "repaint" do you mean an "expose" signal? you should only be
drawing within an expose handler (there is one exception: drawing into
an off-screen drawable, typically a pixmap). drawing at any other time
is just not the correct model.

--p




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]