Re: Muffling widget repaints
- From: Paul Davis <paul linuxaudiosystems com>
- To: 9sjb qlink queensu ca
- Cc: gtk-list gnome org
- Subject: Re: Muffling widget repaints
- Date: Sat, 21 Aug 2004 14:22:56 -0400
>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]