mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
ges: Add a method to TimelineObject to set contained TrackObject-s locked state
API: ges_timeline_object_objects_set_locked
This commit is contained in:
parent
5d35024cd3
commit
714a7bf886
4 changed files with 34 additions and 0 deletions
|
@ -1106,6 +1106,14 @@
|
|||
)
|
||||
|
||||
|
||||
(define-method objects_set_locked
|
||||
(of-object "GESTimelineObject")
|
||||
(c-name "ges_timeline_object_objects_set_locked")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gboolean" "locked")
|
||||
)
|
||||
)
|
||||
|
||||
;; From ges-timeline-operation.h
|
||||
|
||||
|
|
|
@ -324,6 +324,7 @@ ges_timeline_object_get_track_objects
|
|||
ges_timeline_object_set_layer
|
||||
ges_timeline_object_set_moving_from_layer
|
||||
ges_timeline_object_set_priority
|
||||
ges_timeline_object_lock_track_objects
|
||||
GESTimelineObjectPrivate
|
||||
GES_IS_TIMELINE_OBJECT
|
||||
GES_IS_TIMELINE_OBJECT_CLASS
|
||||
|
|
|
@ -1342,6 +1342,29 @@ ges_timeline_object_copy (GESTimelineObject * object, gboolean * deep)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_object_objects_set_locked:
|
||||
* @object: the #GESTimelineObject
|
||||
* @locked: whether the #GESTrackObject contained in @object are locked to it.
|
||||
*
|
||||
* Set the locking status of all the #GESTrackObject contained in @object to @locked.
|
||||
* See the ges_track_object_set_locked documentation for more details.
|
||||
*
|
||||
* Since: 0.10.XX
|
||||
*/
|
||||
void
|
||||
ges_timeline_object_objects_set_locked (GESTimelineObject * object,
|
||||
gboolean locked)
|
||||
{
|
||||
GList *tmp;
|
||||
|
||||
g_return_if_fail (GES_IS_TIMELINE_OBJECT (object));
|
||||
|
||||
for (tmp = object->priv->mappings; tmp; tmp = g_list_next (tmp)) {
|
||||
ges_track_object_set_locked (((ObjectMapping *) tmp->data)->object, locked);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
update_height (GESTimelineObject * object)
|
||||
{
|
||||
|
|
|
@ -293,6 +293,8 @@ ges_timeline_object_set_supported_formats (GESTimelineObject * self,
|
|||
GESTimelineObject *
|
||||
ges_timeline_object_split(GESTimelineObject * self, gint64 position);
|
||||
|
||||
void
|
||||
ges_timeline_object_objects_set_locked (GESTimelineObject * object, gboolean locked);
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* _GES_TIMELINE_OBJECT */
|
||||
|
|
Loading…
Reference in a new issue