Re: draw signals



Opps, let me correct myself.  I'm finding that a "draw" AND an "expose_event"
are being emitted.  Is there any way to filter this so that only the
"expose_event" is acted upon.  My pixmaps are being refreshed by the
"expose_event" and then redrawn by the "draw" signal unnecessarily.  By doing so
it is forcing my to allocate memory for the redraw, when I don't really need to.
The pixmap hasn't changed, so I only need to refresh it.  In and all help would
be greatly appreciated.  Thanks in advance!


I might be wrong, so don't take my words for granted,
but I really believe you will be much better if you
just forget about "draw" signals at all. You don't
need "draw" for nothing. Just forget that it exists.
Do yourself a favor and erase "draw" from your app, completely,
your app will be simpler and will behave better.

"expose_event" "configure_event" and "motion_notify_event"
are the signals you usually need when handling complex
drawing areas (or opengl_areas for that matter).

Carlos




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