diff options
author | Thibault Saunier <thibault.saunier@collabora.com> | 2013-09-28 15:42:20 +0200 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@collabora.com> | 2013-09-28 15:42:20 +0200 |
commit | 002977cd85d21400194ba8041bb48c313952d995 (patch) | |
tree | 63bd29b00dddb9a0fdac14a6e42ab5300123f8c7 | |
parent | 1c389d6af37672fbe0756e1decccde98128c6ecb (diff) |
timeline: Add a signal to know when it is commited
-rw-r--r-- | ges/ges-timeline.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 76a1fa14..d7070dac 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -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; } |