Sat Sep 25 19:43:53 2010user42 [...] zip.com.au - Ticket created
Subject:
menu docs of action callback
Date:
Sun, 26 Sep 2010 09:43:12 +1000
To:
bug-Prima [...] rt.cpan.org
From:
Kevin Ryde <user42 [...] zip.com.au>
In Prima::Menu 1.28 the pod for the menu Action field says it's called
with three params. Is it in fact just two, or at least when it's an
subr?
I usually find it easier to see a sample call than a description of args
in words, eg.
$owner->$action($item_id);
Sun Sep 26 11:19:39 2010KARASIK [...] cpan.org - Correspondence added
Thanks, fixed! Indeed there are two scalars:
Prima::MainWindow-> new(
menuItems => [
['item', 'Test',
sub {
my ( $window, $item) = @_; # contain MainWindow and
'item'
}],
]
);
Sun Sep 26 11:19:40 2010The RT System itself - Status changed from 'new' to 'open'
Sun Sep 26 11:20:03 2010KARASIK [...] cpan.org - Status changed from 'open' to 'resolved'