From 79e2bbac5d879c565f2abb7297aa01e67a8c40b0 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 6 May 2016 22:28:26 -0300 Subject: [PATCH] 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. --- ges/ges-timeline-element.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ges/ges-timeline-element.c b/ges/ges-timeline-element.c index b640e77..98cb2d5 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); -- 2.7.4