Re: ItemFactory : how does it work ?
- From: "muppet" <scott asofyet org>
- To: <gtk-perl-list gnome org>
- Subject: Re: ItemFactory : how does it work ?
- Date: Mon, 12 May 2003 13:43:45 -0400 (EDT)
Sylvain Daubert said:
$itemfac->create_items([
['/_File', undef, undef, 0, '<Branch>'],
['/File/_Quit', undef, undef, 0, '<StockItem>', 'gtk-exit']
]);
don't give create_items an array reference, just give it an array, like this:
$itemfac->create_items(
['/_File', undef, undef, 0, '<Branch>'],
['/_File/_Quit', undef, undef, 0, '<StockItem>', 'gtk-quit' ],
);
also note that to get the mnemonic to show up on the File menu you need to put
it everywhere you mention that menu. and the stock icon you want is actually
gtk-quit.
there was a bug in the XS wrapper that kept the stock icons from working ---
that's fixed in CVS now.
=)
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]