Re: gdk draw error...



Giaslas Georgios <giaslas ceid upatras gr> writes:
> 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).
>

That won't work; the drawing area has to be visible in addition to
realized. 
 
> alternatively, you should first make the drawing area visibe and then
> call the function mygrid();
> 

This is the right thing; you can't draw until you get your first
expose_event.

Woo-Sick: read the "scribble" example in the GTK tutorial.

Havoc




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