note 457 added to signals.connection.php
| From: | php-gtk at lists dot php dot net | Date: | Sun, 19 Sep 2004 17:54:11 +0000 |
| Subject: | note 457 added to signals.connection.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-2605@lists.php.net to get a copy of this message | ||
The bottom example should be:
<?php
if( !extension_loaded('gtk')) {
dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);
}
function first($button)
{
print "First function has been called\n";
}
function second($button)
{
print "Second function has been called\n";
}
$window = &new GtkWindow();
$window->connect_object("destroy", array("gtk",
"main_quit"));
$button = &new GtkButton("Click Me!!");
$button->connect("clicked","first");
$button->connect("clicked","second");
$window->add($button);
$window->show_all();
gtk::main();
?>
http://gtk.php.net:80/manual/en/signals.connection.php