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
> 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

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


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