diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2016-05-06 22:28:26 -0300 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2016-06-07 12:28:55 -0400 |
commit | 64cdd4adecf0cf14c46a2ce7d3f252191f7ff84d (patch) | |
tree | 1d3cb32746dd2c1a17e03221008492665521ce0e | |
parent | 0e3f23b3225bc5b1bdd7f6c582b9eeaf7325cbe5 (diff) |
element: Also accept GParamSpec.owner_type name as a child property prefix
Makes it simpler for python users to be able to retrieve children
properties iterating over them.
-rw-r--r-- | ges/ges-timeline-element.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ges/ges-timeline-element.c b/ges/ges-timeline-element.c index 57859f22..e03f1f0a 100644 --- a/ges/ges-timeline-element.c +++ b/ges/ges-timeline-element.c @@ -124,6 +124,8 @@ _lookup_child (GESTimelineElement * self, const gchar * prop_name, ChildPropHandler *handler = (ChildPropHandler *) value; if (classename == NULL || g_strcmp0 (G_OBJECT_TYPE_NAME (G_OBJECT (handler->child)), + classename) == 0 || + g_strcmp0 (g_type_name (G_PARAM_SPEC (key)->owner_type), classename) == 0) { GST_DEBUG_OBJECT (self, "The %s property from %s has been found", name, classename); |