signal class closure chaining is here!



Yesterday Tim added support for signal class closure chaining to glib. This means that it is possible to override the "class" handler for a signal defined on a C GObject (think overriding expose_event, etc rather than just connecting a handler).

For those not on gnome-2-0-list, here is a link to the archived message:
 http://mail.gnome.org/archives/gnome-2-0-list/2001-December/msg00339.html

Note the small modification to the chaining API at the bottom of the message. The change means that the user need not pass the signal name/id in when chaining, so it should be possible to implement things like:
 def do_show(self):
     # do stuff
     self.chain() # chains to the overriden closure

This brings us a large step closer to putting objects implemented in languages other than C on an equal footing with C objects.

James.

--
Email: james daa com au
WWW:   http://www.daa.com.au/~james/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]