Re: GtkGC shared auto-release
- From: Kevin Ryde <user42 zip com au>
- To: gtk2-perl List <gtk-perl-list gnome org>
- Subject: Re: GtkGC shared auto-release
- Date: Wed, 16 Jan 2008 08:35:50 +1100
muppet <scott asofyet org> writes:
+ /* Rebless to Gtk2::GC, so that we get our DESTROY called */
+ RETVAL = sv_bless (newSVGdkGC (gc), gv_stashpv ("Gtk2::GC", 1));
Could the DESTROY of Gtk2::Gdk::GC be pressed into service instead of
reblessing, to keep the return the same class as before? If gdk code
linking/calling upwards to a gtk func is undesirable then maybe via a
function pointer hooked in by the Gtk2::GC code.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]