How can I disable double-buffering? or How can I draw in a drawable immediately?



I am trying to write a function that draws stuff in a
drawingarea immediately.
I want the images to be drawn directly when I call the
function.

What I am trying to make is something like this:

void main_function(...) //called directly after
program start
{...
My_drawing_function(...);
//the image displayed in the drawingarea has changed
getchar();
...
//exit program
}

I figured the problem comes from the double-buffering
and I tried to disable it using:
GTK_WIDGET_UNSET_FLAGS (window1,GTK_DOUBLE_BUFFERED);

But it didn't work.

So how can I disable double-buffering?
Or if the problem is coming from something else, where
is it?
Regards,
Zoidberg


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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