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@ubuntu.com>
Fri, 4 Jan 2013 20:20:04 +0000 (21:20 +0100)
commitc2055f22f4399a23d1c02a94f8b029212e37e162
tree0661e2a71977b2acadea57e3d32296eb580db41a
parent125833d4277046efc77aeabe43282514b9f5bc73
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