gtype: disallow adding interfaces after the fact
authorRyan Lortie <desrt@desrt.ca>
Mon, 5 Nov 2012 16:07:16 +0000 (11:07 -0500)
committerRico Tzschichholz <ricotz@t-online.de>
Tue, 18 Dec 2012 20:37:07 +0000 (21:37 +0100)
commit5df1edaf70ad3abe45cb599de934b9531b7388a2
tree90ecee60b81b2b2e3284ff35a1e6dc4fa756a8c0
parentd04faab3274ae06a318a87b08c499df7a797d39d
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