Re: menuitem confusion
- From: Dave M <dave nerd gmail com>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: menuitem confusion
- Date: Sun, 1 Jul 2012 08:05:13 -0500
On Sun, Jul 1, 2012 at 7:59 AM, Torsten Schoenfeld <kaffeetisch gmx de> wrote:
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);
Unfortunately, that was the FIRST thing I tried because that's what
all the examples show.. :) And it results in:
Can't find information for method RadioMenuItem::new at ./fooblah.pl
Thanks,
Dave M
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]