Re: menuitem confusion

On 01.07.2012 14:35, Dave M wrote:
   sub Gtk3::RadioMenuItem::new {
     my ($class, $group) = @_;
     $group = [] unless defined $group;
     return $class->new ($group);
>>    }

Thanks for the explanation.  However, when I do things like this,
there are recursion warnings.  Isn't that calling itself?  Happened
when I did something similarly with "new_with_label" too recently.

Right, that was silly.  Try this:

  return Glib::Object::Introspection->invoke (
    $_GTK_BASENAME, 'RadioMenuItem', 'new',
    $class, $group);

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