stefan k has asked for the wisdom of the Perl Monks concerning the following question:
The problem is this line
$item_factory->create_items( @menu_items );
with a menu_items array that looks like
my @menu_items = ( { path => '/_File', type => '<Branch>' }, { path => '/File/_Quit', accelerator => '<control>Q', callback => \&main_quit }, { path => '/_Hilfe', type => '<LastBranch>' }, { path => '/File/About', callback => \&show_about_msg } );
But perl just says that
which is quite sad. There _is_ a method create_item (grep finds it in the binary file auto/Gtk/Gtk.so in the appropriate directory) but that doesn't work with an array of items, at least it seems to me to be that way.Can't locate object method "create_items" via package "Gtk::ItemFactor +y" at ./itemfactory line 114
Since the documentation to this great module is ...uhm... not really existant *gg* I ask my fellow monks for advise...
| Regards | Stefan K |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Tyop?
by grinder (Bishop) on Apr 03, 2001 at 18:37 UTC | |
|
Re: Perl-Gtk: ItemFactory
by busunsl (Vicar) on Apr 03, 2001 at 18:36 UTC |