AdgEntity: added "destroy" signal
commit0e8c33a0b1b1e9bd95b597d76dc3b1f980124357
authorNicola Fontana <ntd@entidi.it>
Fri, 23 Mar 2012 14:02:44 +0000 (23 15:02 +0100)
committerNicola Fontana <ntd@entidi.it>
Fri, 23 Mar 2012 14:02:44 +0000 (23 15:02 +0100)
tree13949fd342766074a856f7f9e782c32afe47f672
parent95c1c18f86984c5f9592af283981d5b8e0e8c919
AdgEntity: added "destroy" signal

g_object_unref() is not enough to destroy a composite entity because
its children still hold references to itself. This is why the "destroy"
signal is needed for: it will be propagated to the children (or to its
internal entities) so at the end all the references will be released
and the entity will likely be destroyed.

Anyway the entity will be still alive after a destroy process if the
caller owns a reference to it.
24 files changed:
src/adg/adg-container.c
src/adg/adg-entity.c
src/adg/adg-entity.h
src/adg/adg-table.c
src/adg/tests/test-adim.c
src/adg/tests/test-arrow.c
src/adg/tests/test-canvas.c
src/adg/tests/test-container.c
src/adg/tests/test-dim-style.c
src/adg/tests/test-dim.c
src/adg/tests/test-entity.c
src/adg/tests/test-gtk-area.c
src/adg/tests/test-gtk-layout.c
src/adg/tests/test-hatch.c
src/adg/tests/test-ldim.c
src/adg/tests/test-logo.c
src/adg/tests/test-marker.c
src/adg/tests/test-model.c
src/adg/tests/test-projection.c
src/adg/tests/test-stroke.c
src/adg/tests/test-table.c
src/adg/tests/test-text.c
src/adg/tests/test-title-block.c
src/adg/tests/test-toy-text.c