Skip Menu |

This queue is for tickets about the Prima CPAN distribution.

Report information
The Basics
Id: 61639
Status: resolved
Priority: 0/
Queue: Prima

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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);
Thanks, fixed! Indeed there are two scalars: Prima::MainWindow-> new( menuItems => [ ['item', 'Test', sub { my ( $window, $item) = @_; # contain MainWindow and 'item' }], ] );