[AdgContainer] Allow to g_object_unref() the children
commitc3728eb566dfb6eae2d5134ece943408f7a34999
authorNicola Fontana <ntd@entidi.it>
Sat, 24 Apr 2010 15:18:58 +0000 (24 17:18 +0200)
committerNicola Fontana <ntd@entidi.it>
Sat, 24 Apr 2010 15:18:58 +0000 (24 17:18 +0200)
tree9aac42f02f345041bde1d44ee7807cabaad9a299
parent9ebe739ee9c2c82c612d21b3a2aaa3f8992eab5f
[AdgContainer] Allow to g_object_unref() the children

Added weak references to children to catch the destroying phase and
automatically remove them from the internal GSList.

This permits to g_object_unref() a child entity and have it removed from
the container.
src/adg/adg-container.c
src/adg/tests/test-container.c