trackelement: Add a lookup_child vmethod
authorThibault Saunier <tsaunier@gnome.org>
Wed, 29 Oct 2014 12:40:55 +0000 (13:40 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Mon, 10 Nov 2014 15:22:41 +0000 (16:22 +0100)
commit20f76fe86f941fae124e2db78c2d63a0e173592d
treebbc1e52f4b433e6f43d2b2c8909c1d4500c80636
parent190643508f14a64e36f085a69de819505e79dadb
trackelement: Add a lookup_child vmethod

This method can be used for subclass to override the default behaviour
for child lookup. This vmethod can be used for example in the case where
you want the name of a child property to be 'overridden'.

As an example in the GESTitleSource where we have a videotestsrc
which has a 'foreground-color' property that is used in the TitleSource
to set the background color of the title, this vmethod is now used to
tweak the name passed as parameter to rename "background" to
"foreground-backend" making our API understandable.

API:
  GESTrackElement::lookup_child

https://bugzilla.gnome.org/show_bug.cgi?id=727880
ges/ges-title-source.c
ges/ges-title-source.h
ges/ges-track-element.c
ges/ges-track-element.h