clip: Emit notify signal when setting Clip.layer

This commit is contained in:
Thibault Saunier 2013-03-23 08:45:00 +01:00
parent 7313916ae8
commit 134ce9a8d8

View file

@ -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