[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: buildable interface testers error
- From: Kevin Ryde <user42 zip com au>
- To: gtk-perl-list gnome org
- Subject: Re: buildable interface testers error
- Date: Wed, 29 Oct 2008 10:56:09 +1100
Torsten Schoenfeld <kaffeetisch gmx de> writes:
>
> Gtk2::Widget->isa ('Gtk2::Buildable');
Ah yes. I thought of
Gtk2::Buildable->isa('Glib::Interface')
but that's not jigged up. Glib::Interface appears in
Glib::Type->list_ancestors('Gtk2::Buildable'), but list_ancestors croaks
if the given type doesn't exist, which is no so friendly for a
conditional ...
> + croak ("encountered unregistered interface %s",
> + SvPV_nolen (*svp));
Sounds good. Or maybe just "no such interface", unless not registering
it at the right time is also a possible or likely way for it to go wrong
...
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]