RE: [gtk-list] re: Errors in GTK Tutorial?
- From: "Peter Wilson" <peter stubble force9 co uk>
- To: <gtk-list redhat com>
- Subject: RE: [gtk-list] re: Errors in GTK Tutorial?
- Date: Sun, 27 Jun 1999 23:58:50 +0100
> Whenever you want to handle a particular type of event
> ("clicked", "destroy-event", etc.) you have to look-up the prototype for
> that event (as you point out, there are many different ones),
> implement your
> callbacks using that prototype, and call gtk_signal_connect with the
> function address. Even though you cast your function prototype using the
> GTK_SIGNAL_FUNC() macro, GTK "knows" which callback prototype goes with
> which event, so your callbacks will always be called with the
> correct set of
> parameters, stack cleanup, and-so-on.
Thanks for explaining that Tim, and confirming that the tutorial does
many bugs due to this (as an example the delete_event handler in the
Hello World source incorrectly returns void rather than gboolean).
I see on www.gtk.org that there is a more recent version of the tutorial,
still contains these bugs but which is only available as HTML rather than
complete package - does anyone know where the package for that version (10th
might be found so that corrections could be sent to the authors?
Thanks also to Havoc Pennington, I've not yet read your sample chapters but
like they should answer my every question! ;)
] [Thread Prev