Re: GTK2::Button retrieved from Tie::IxHash hash value does not render
- From: Kevin Ryde <user42 zip com au>
- To: gtk-perl-list gnome org
- Subject: Re: GTK2::Button retrieved from Tie::IxHash hash value does not render
- Date: Mon, 25 Jul 2011 11:27:49 +1000
Roderich Schupp <roderich schupp googlemail com> writes:
Maybe gperl_get_object and gperl_get_object_check need
SvGETMAGIC(sv);
*before* checking SvROK(sv)?
Yes, I think so. Always seems a bit fraught enquiring into the nature
of an sv with those OK or TYPE macros.
If I intentionally ignore this check the next check is
sv_derived_from(sv, "Gtk2::Widget")
which passes. Interestingly this has modified sv as a side effect:
I suppose it ran the magic. No doubt ideally you'd want to run the
magic just once, but I've got no idea if it's easy or hard to tell
derived_from that you already did it ...
--
The sigfile finance for the layman series:
When reading a mining company's annual report the more pages of tedium
about geology and minerals the less chance of investors making money.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]