Most objects in gtk2-perl provide signals for things that need to be overridden, so you can use class closure overrides as a way to override virtual functions. Some virtual functions, however, have no associated signals, and so you have to write a lot of special code to deal with them. Here's the first draft of a document that describes how to do that. Specifically, please don't use Gtk2::CellRenderer's implementation in Gtk2/xs/GtkCellRenderer.xs as an example --- it's very ugly because it supports the old, broken syntax in addition to the new, improved, simpler stuff. Use this document instead. I'd like to put this into cvs; i'm open to suggestions on where would be an appropriate home... perhaps gtk2-perl-xs/docs/ ?
Attachment:
vfunc_howto.pod
Description: Text document