diff options
author | Thibault Saunier <thibault.saunier@collabora.com> | 2013-06-28 19:17:54 -0400 |
---|---|---|
committer | Mathieu Duponchelle <mathieu.duponchelle@epitech.eu> | 2013-07-09 22:13:41 +0200 |
commit | 9d13c5cbd38a41e217f4f09fa5f79bc296c5ca3c (patch) | |
tree | a04bc12533c90a964950bbbed354cc1c7e8d84b3 /ges/ges-container.c | |
parent | bcfeada696e042d9d56ec76befa450c5ee0df57d (diff) |
container: Do not allow adding an element to a container if it already has a parent
This should never happen, an element can have 1 and only 1 parent.
Diffstat (limited to 'ges/ges-container.c')
-rw-r--r-- | ges/ges-container.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ges/ges-container.c b/ges/ges-container.c index 16a27caa..88fc4f0c 100644 --- a/ges/ges-container.c +++ b/ges/ges-container.c @@ -472,6 +472,7 @@ ges_container_add (GESContainer * container, GESTimelineElement * child) g_return_val_if_fail (GES_IS_CONTAINER (container), FALSE); g_return_val_if_fail (GES_IS_TIMELINE_ELEMENT (child), FALSE); + g_return_val_if_fail (GES_TIMELINE_ELEMENT_PARENT (child) == NULL, FALSE); class = GES_CONTAINER_GET_CLASS (container); priv = container->priv; |