Re: Menu Help
| From: | Malk0 | Date: | Sun, 17 Jul 2005 13:05:08 +0000 |
| Subject: | Re: Menu Help | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6047@lists.php.net to get a copy of this message | ||
you can find a code snippet to easyli add menus to your applications
with icon support in the wiki here:
http://gtk.php.net/wiki/CodeSnippets/MenuIcon
nathan
2005/7/14, Scott Mattocks <scott@crisscott.com>:
> 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
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>