menuitem confusion

Hello all,

I'm coming up with an error using MenuItems here:

my $group = undef;

my $menuitem = Gtk3::RadioMenuItem->new_with_label( $group, $label );
$group = $menuitem->get_group;

The error is:

undefined value for mandatory argument 'group' encountered

The problem is that it's supposed to be undef at this point; later
menuitems will be added to the created group.

Did I do something wrong here, or is there a bug?

Dave M

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]