Re: GtkGC shared auto-release



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]