From 134ce9a8d8e6a5355f02bb02182a1c45a2d566a4 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sat, 23 Mar 2013 08:45:00 +0100 Subject: [PATCH] clip: Emit notify signal when setting Clip.layer --- ges/ges-clip.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ges/ges-clip.c b/ges/ges-clip.c index 7b3a0214db..296ae26a50 100644 --- a/ges/ges-clip.c +++ b/ges/ges-clip.c @@ -605,6 +605,13 @@ ges_clip_set_layer (GESClip * clip, GESTimelineLayer * layer) GST_DEBUG ("clip:%p, layer:%p", clip, layer); clip->priv->layer = layer; + + /* We do not want to notify the setting of layer = NULL when + * it is actually the result of a move between layer (as we know + * that it will be added to another layer right after, and this + * is what imports here.) */ + if (layer || clip->priv->is_moving == FALSE) + g_object_notify_by_pspec (G_OBJECT (clip), properties[PROP_LAYER]); } gboolean