Commit 002977cd authored by Thibault Saunier's avatar Thibault Saunier
Browse files

timeline: Add a signal to know when it is commited

parent 1c389d6a
......@@ -222,6 +222,7 @@ enum
SNAPING_STARTED,
SNAPING_ENDED,
SELECT_TRACKS_FOR_OBJECT,
COMMITED,
LAST_SIGNAL
};
......@@ -518,6 +519,14 @@ ges_timeline_class_init (GESTimelineClass * klass)
g_signal_new ("select-tracks-for-object", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, _gst_array_accumulator, NULL, NULL,
G_TYPE_PTR_ARRAY, 2, GES_TYPE_CLIP, GES_TYPE_TRACK_ELEMENT);
/**
* GESTimeline::commited
* @timeline: the #GESTimeline
*/
ges_timeline_signals[COMMITED] =
g_signal_new ("commited", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 0);
}
static void
......@@ -2876,6 +2885,9 @@ ges_timeline_commit (GESTimeline * timeline)
/* Make sure we reset the context */
timeline->priv->movecontext.needs_move_ctx = TRUE;
if (res)
g_signal_emit (timeline, ges_timeline_signals[COMMITED], 0);
return res;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment