Please explain 1st arg of configure & expose event functions...

2002-02-06 Thread Chris Seberino
Examples of configure and expose event functions have a mysterious GtkWidget for the first arg. I cannot seem to discern what it is. Please explain... Here is an example of an expose event function: gint middleMassTimeSeriesPlotPatch(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixm

Re: Please explain 1st arg of configure & expose event functions...

2002-02-06 Thread Paul Davis
>Examples of configure and expose event functions >have a mysterious GtkWidget for the first arg. >I cannot seem to discern what it is. often, a signal is emitted because of an event occuring in/on the widget. the handler(s) for the signal receive a pointer to the widget as their first argument.

Re: Please explain 1st arg of configure & expose event functions...

2002-02-06 Thread Chris Seberino
On Wed, Feb 06, 2002 at 10:06:24AM -0500, Paul Davis wrote: > >Examples of configure and expose event functions > >have a mysterious GtkWidget for the first arg. > >I cannot seem to discern what it is. > > often, a signal is emitted because of an event occuring in/on the > widget. the handler(s)

Re: Please explain 1st arg of configure & expose event functions...

2002-02-06 Thread Paul Davis
>This widget that is the first argument seems to be the window >that _contains_ the pixmap drawing from what you are saying. no. its the widget for which the event took place and for which the signal is being emitted. this mistake has caused you much later confusion. >I'm confused because some