container: Call _remove_child when cannot set parent
authorAlexandru Băluț <alexandru.balut@gmail.com>
Thu, 11 Apr 2019 21:58:48 +0000 (23:58 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Wed, 17 Apr 2019 21:56:21 +0000 (21:56 +0000)
commit07ee386d30b72c3d3eb6b5d517dff9b6c3fb6cee
tree9f9853be59e7001278eff8dcb2bb217ae0b10d4d
parent134e2ffae1aae0a067cb52ca5fd09b017d9cf7d4
container: Call _remove_child when cannot set parent

ges_container_add removes the child being added if the call to
ges_timeline_element_set_parent fails. In this case, subclasses should
be given the chance to revert the effects of the add_child vmethod which
has just been called.
ges/ges-container.c