element: Also accept GParamSpec.owner_type name as a child property prefix
authorThibault Saunier <tsaunier@gnome.org>
Sat, 7 May 2016 01:28:26 +0000 (22:28 -0300)
committerThibault Saunier <tsaunier@gnome.org>
Sat, 7 May 2016 01:30:23 +0000 (22:30 -0300)
Makes it simpler for python users to be able to retrieve children
properties iterating over them.

ges/ges-timeline-element.c

index b640e77..98cb2d5 100644 (file)
@@ -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);