note 121 added to gtk.gtkmenu.constructor.php
| From: | am17 at free dot fr | Date: | Tue, 09 Apr 2002 01:38:41 +0000 |
| Subject: | note 121 added to gtk.gtkmenu.constructor.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-399@lists.php.net to get a copy of this message | ||
It is just about a little error in the example 23 : the function show_popup has one " { "
too many. So the correct code should be :
function show_popup($event, $menu)
{
if($event->button == 3)
$menu->popup(null,null,null,$event->button,$event->time);
}
http://gtk.php.net/manual/en/gtk.gtkmenu.constructor.php