Re: Solved: gtk_widget_add_events and GtkDrawingArea



Hi,

Peter Van Osta <pvosta unionbio-eu com> writes:

> By adding "gtk_widget_add_events" in the "expose_event" callback
> function I could set the additional event(s) at the moment the
> GtkDrawingArea pops up. I have included the sample code below. I don't
> expect any problems to occur when the GtkDrawingArea pops up several
> times ?

it's unneeded overhead but it shouldn't cause any problems. I'd
suggest to move the call to gtk_widget_add_events() to the realize
callback instead (if there really is no other way to access the widget
pointer because of Glade weirdnesses).


Salut, Sven



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