Re: Menu Help

From: Date: Thu, 14 Jul 2005 13:02:27 +0000
Subject: Re: Menu Help
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6012@lists.php.net to get a copy of this message
Hi Builo, Markus Fischer wrote:
$menu = &$fac->get_widget('/Diverses/Filter'); $menu->connect('toggled', array(&$this, 'menuFilterToggled'));
The GtkItemFactory is a good way to make menus but in general if you want a widget to react to some event you need to use the connect method or one of its sister methods. You connect the signal to a callback method. When an event causes the signal to be emitted, the callback is called automatically. http://gtk.php.net/manual/en/gtk.gtkobject.method.connect.php -- Scott Mattocks scott@crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks

« previous php.gtk.general (#6012) next »