Re: ItemFactory : how does it work ?



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]