i think the problem is that you should call
gtk_widget_realize(drawing_area);
before you try to paint on it (with the function mygrid).
alternatively, you should first make the drawing area visibe and then
call the function mygrid();
i hope it helps you
George Giaslas
On Wed, 4 Oct 2000,
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
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 [EMAIL
if you don't need to display the value next to the slider
you can simply create the slider with range from 0 to 72
and substract 60 at the callback
and call gtk_scale_set_draw_value () in order not to display the value
next to the slider
On Tue, 25 Jul 2000, Hugo Villeneuve wrote:
Hi,