timeline: connect_after to layer.object_added.

We want the user provided signal handlers to be called before
we add track elements.
This commit is contained in:
Mathieu Duponchelle 2014-10-29 13:25:06 +01:00 committed by Thibault Saunier
parent 3f97397b4f
commit 3035bcb405

View file

@ -2670,9 +2670,9 @@ ges_timeline_add_layer (GESTimeline * timeline, GESLayer * layer)
g_hash_table_insert (timeline->priv->by_layer, layer, g_sequence_new (NULL));
/* Connect to 'clip-added'/'clip-removed' signal from the new layer */
g_signal_connect (layer, "clip-added", G_CALLBACK (layer_object_added_cb),
timeline);
g_signal_connect (layer, "clip-removed",
g_signal_connect_after (layer, "clip-added",
G_CALLBACK (layer_object_added_cb), timeline);
g_signal_connect_after (layer, "clip-removed",
G_CALLBACK (layer_object_removed_cb), timeline);
g_signal_connect (layer, "notify::priority",
G_CALLBACK (layer_priority_changed_cb), timeline);