overrides: Make sure overrides are in hierarchy order

Otherwise method order resolution will not be correct
This commit is contained in:
Thibault Saunier 2019-05-23 17:20:56 -04:00
parent ab2582c97e
commit 9b2cdbb355

View file

@ -50,16 +50,6 @@ python module to use with GES 0.10"
warnings.warn(warn_msg, RuntimeWarning)
class TrackElement(GES.TrackElement):
def set_child_property(self, prop_name, prop_value):
return TimelineElement.set_child_property(self, prop_name, prop_value)
TrackElement = override(TrackElement)
__all__.append('TrackElement')
class TimelineElement(GES.TimelineElement):
def __repr__(self):
return "%s [%s (%s) %s]" % (
@ -81,6 +71,14 @@ class TimelineElement(GES.TimelineElement):
TimelineElement = override(TimelineElement)
__all__.append('TimelineElement')
class TrackElement(GES.TrackElement):
def set_child_property(self, prop_name, prop_value):
return TimelineElement.set_child_property(self, prop_name, prop_value)
TrackElement = override(TrackElement)
__all__.append('TrackElement')
class Container(GES.Container):
def edit(self, layers, new_layer_priority, mode, edge, position):
return GES.TimelineElement.edit(self, layers, new_layer_priority, mode, edge, position)