]> git.draconx.ca Git - gob-dx.git/commit
Fix dynamic interface implementation.
authorNick Bowler <nbowler@draconx.ca>
Thu, 6 Feb 2020 05:07:44 +0000 (00:07 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 7 Feb 2020 02:17:06 +0000 (21:17 -0500)
commit43115cbfefb29535b3e9da83ab247a7f24c6994b
tree4093d309b6e9c90290afc37403d32ef648ad16b8
parent0c92ab0b40d0c819fe88edd88db5dbf4f609d6da
Fix dynamic interface implementation.

When a dynamic type implements an interface and derives from a type
which implements the same interface, the g_type_module_add_interface
function does not actually work: no interface will be added to the
dynamic type in this case.

The bug is in the GTypeModule class implementation in gobject,
the actual type system has no such limitation.  It is reasonably
straightforward to hack around the problem in GOB.
src/main.c
tests/interface.at