is it possible to prevent automatic redrawing of window? I want it t开发者_运维问答o redraw only when I issue queue_draw().
Explanation: I need this because I'm using a 3rd party commercial library for industrial graphics which I can tell when to redraw, but also it redraws when X tells it to and it is not possible to prevent that. Therefore, I need to prevent that because of an app-specific requirements and make it redraw only when I tell it to.
Well, what's the point? If you don't make it redraw automatically, you'll be unable to minimize/maximize the window, move it from the background to the foreground... And if these are actions that never happen, then your windows is already redrawn only when you call queue_draw. Just add some trace code in the expose-event
handler, and you'll see it.
So I think your're looking to at the wrong solution for the wrong problem.
Edit: so what you need may be the GTK_APP_PAINTABLE flag.
精彩评论