gtype: disallow adding interfaces after the fact
authorRyan Lortie <desrt@desrt.ca>
Mon, 5 Nov 2012 16:07:16 +0000 (11:07 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 5 Nov 2012 18:20:28 +0000 (13:20 -0500)
commitd6a075b0d8dfe4e4a41f6624ad7032d2163d420c
tree9677ccdfcd4b2c6b53679b8024d094307a591a32
parent1af1b2b2bb10b5db27cd43af02f199ebc3f466d7
gtype: disallow adding interfaces after the fact

Add a check to prevent adding an interface to a class that has already
had its class_init done.

This is an incompatible change but it is suspected that there are not
many users of this functionality.  Two known exceptions are pygobject
(fixed in bug 686149) and our own testsuite (affected tests have been
temporarily disabled by this patch).

Once we confirm that nobody else is using this functionality we can
remove a rather large amount of code for dealing with this case.

https://bugzilla.gnome.org/show_bug.cgi?id=687659
gobject/gtype.c
gobject/tests/threadtests.c
tests/gobject/Makefile.am