Talking of signals ...
| From: | Steph | Date: | Sun, 10 Mar 2002 19:17:34 +0000 |
| Subject: | Talking of signals ... | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-465@lists.php.net to get a copy of this message | ||
I've had mail from newbies 2 or 3 times now who find it a struggle to understand how the
signals in PHP-GTK work.
I've been thinking about it, and think it would probably be best to put into the documentation
a single-line sample showing the connect() line (which will always be the same, pretty much) and a
single line showing the callback function() that is being connected to.
e.g.
function callback($widget, $event, $extra_data) {
/* do stuff */
}
$widget->connect('button-press-event', 'callback', $extra_data);
If anyone has any better ideas, please let me know before I start going through and implementing
this?