summaryrefslogtreecommitdiff
path: root/ges
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2016-05-06 22:28:26 -0300
committerThibault Saunier <tsaunier@gnome.org>2016-05-06 22:30:23 -0300
commit79e2bbac5d879c565f2abb7297aa01e67a8c40b0 (patch)
tree402893e23d9a95207e8a0edb2e49cdd12b7ae33f /ges
parent66d65ed32fb47a809dd8898721e50bc6d2a03d7a (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.
Diffstat (limited to 'ges')
-rw-r--r--ges/ges-timeline-element.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ges/ges-timeline-element.c b/ges/ges-timeline-element.c
index b640e77a..98cb2d5d 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);