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
This commit is contained in:
Ryan Lortie
2012-11-05 11:07:16 -05:00
committed by Rico Tzschichholz
parent 125833d427
commit c2055f22f4
3 changed files with 18 additions and 11 deletions

View File

@@ -59,9 +59,6 @@ test_programs = \
accumulator \
defaultiface \
dynamictype \
ifacecheck \
ifaceinit \
ifaceinherit \
override \
performance \
performance-threaded \