Re: gdk draw error...
- From: Havoc Pennington <hp redhat com>
- To: Giaslas Georgios <giaslas ceid upatras gr>
- Cc: gtk-list gnome org
- Subject: Re: gdk draw error...
- Date: 05 Oct 2000 21:59:10 -0400
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]