Re: drawing area & multithreading



i have tried that.
actually i call gdk_flush() either after gtk_widget_draw() or after
gdk_draw_rectangle inside the expose event.
in both cases i get the following error:
Xlib: unexpected async reply

is there any other way?

thanks

On 4 Sep 2000, Owen Taylor wrote:

> 
> Giaslas Georgios <giaslas ceid upatras gr> writes:
> 
> > hi,
> > i have the following problem.
> > if i have a non-multithreaded program with a drawing area and i call
> > gtk_widget_draw, it calls the expose event fuction which calls
> > gdk_draw_rectangle and
> > then the drawing area updates normally.
> > the problem is that if i create another thread and call gtk_widget_draw
> > from that thread the expose event function is called, but the drawing
> > area isn't updated until i focus/unfocus the window or some widget in the
> > window.
> > 
> > can you help me with that?
> 
> Call gdk_flush() in the thread once you are finished drawing.
> 
> Regards,
>                                         Owen
> 





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