[AdgEntity] Changed "parent" type to AdgEntity
commit33a54522bcdf64cec2b9086cf143f8dd01aee627
authorNicola Fontana <ntd@entidi.it>
Tue, 18 Aug 2009 20:24:18 +0000 (18 22:24 +0200)
committerNicola Fontana <ntd@entidi.it>
Tue, 18 Aug 2009 20:24:18 +0000 (18 22:24 +0200)
tree10fbb3c156fb9ab101bf566c073881cd593818a6
parentab67a2a965975ad64d8b9fb2c1abd1ba3e58c491
[AdgEntity] Changed "parent" type to AdgEntity

Previously the "parent" property was AdgContainer. Changing to AdgEntity
provides a cheap way to define dependencies between AdgEntity: this is
required, for instance, to render quotes using AdgToyText internal
entities without forcing AdgDim to be a container.

This change involved a lot of recoding: actually the AdgEntity owns a
reference to the parent entity. In the usual case, that is when parent
is an AdgContainer, it owns a reference to the child too, so you'll end
up with a circular dependency between parent and child.

The code has been updated to meet the new AdgContainer code.
adg/adg-entity-private.h
adg/adg-entity.c
adg/adg-entity.h