Re: GtkItemFactory
| From: | Steph | Date: | Thu, 07 Mar 2002 17:51:49 +0000 |
| Subject: | Re: GtkItemFactory | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1473@lists.php.net to get a copy of this message | ||
Ah, here we go ..
array( '/File/_Quit/Yes', '<control>Q', create_function('$a,$b',
'gtk::main_quit();'), 0, ''),
was one of Markus' entries .. he'd probably do that differently now ..
The entry goes:
string(path), accelerator, callback, callback_action, item_type
callback_action is an integer which can be referenced by e.g. get_item_by_action() to identify the
menuitem at a later stage.
----- Original Message -----
From: "Michael Waples" <michaelwaples@dingoblue.net.au>
To: "Steph" <steph.fox@btinternet.com>; <php-gtk-general@lists.php.net>
Sent: Friday, March 08, 2002 9:14 AM
Subject: Re: [PHP-GTK] GtkItemFactory
> On Thu, 7 Mar 2002 11:55, Steph wrote:
> > o god, that was last May ...
> >
> > Is Markus's version not still out there?
> >
> > (will fwd when I find it)
> >
>
> Nope seems to be gone from his site.
>
>
>
> > ----- Original Message -----
> > From: "Michael Waples" <michaelwaples@dingoblue.net.au>
> > To: <php-gtk-general@lists.php.net>
> > Sent: Friday, March 08, 2002 8:21 AM
> > Subject: [PHP-GTK] GtkItemFactory
> >
> > > I'm trying to understand the create_items() function.
> > >
> > > >From this example from
> > > >
> > > > http://www.miester.org/folders/steph/itemfactory.phps
> > >
> > > example I see the argument's an array,
> > > Im just trying to understand what must go into the array.
> > > Does anyone have an explanation for the 5 elements in this array ?
> > >
> > > I understand the first, third and fifth but not the second and fourth.
> > >
> > > from the example
> > >
> > > $menu_items = array(
> > > array("/File","",NULL,0,"<Branch>"),
> > > array("/File/Click me","",click_me,0,""),
> > > array("/File/Me too","",me_too,0,""),
> > > array("/Next","",NULL,0,"<Branch>"),
> > > array("/Next/OptionMenu","",opt_bar,0,""),
> > > array("/Way out","",shutdown,0,"<Item>")
> > > );
> > >
> > > Does anyone have a more detailed GtkFactoryItem example ? possibly with
> > > radio and toggle items.
> > >
> > >
> > > --
> > > PHP-GTK General Mailing List (http://gtk.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php