Re: gtk_widget_realize



Markus Lausser <sgop users sourceforge net> writes: 
For example you have to realize is manually if you want to draw into a
widget->window with the gdk_draw_* functions. If the widget was not realized
then widget->window == NULL


Shouldn't realize manually in this case; realization is guaranteed by
the time you get an expose event, and you should draw in response to
expose events. See the "scribble" example in the tutorial.

realization does _not_ put a widget onscreen, it creates the GdkWindow
but doesn't show it. So any drawing you do will be lost.

Havoc




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