mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
group: Add an empty group constructor
As it is more intuitive for users. API: ges_group_new
This commit is contained in:
parent
2723ef561e
commit
cc9391319e
2 changed files with 22 additions and 0 deletions
|
@ -560,3 +560,24 @@ ges_group_init (GESGroup * self)
|
|||
|
||||
self->priv->setting_value = FALSE;
|
||||
}
|
||||
|
||||
/****************************************************
|
||||
* *
|
||||
* API implementation *
|
||||
* *
|
||||
****************************************************/
|
||||
|
||||
/**
|
||||
* ges_group_new:
|
||||
*
|
||||
* Created a new empty #GESGroup, if you want to group several container
|
||||
* together, it is recommanded to use the #ges_container_group method so the
|
||||
* proper subclass is selected.
|
||||
*
|
||||
* Returns: The new empty group.
|
||||
*/
|
||||
GESGroup *
|
||||
ges_group_new (void)
|
||||
{
|
||||
return g_object_new (GES_TYPE_GROUP, NULL);
|
||||
}
|
||||
|
|
|
@ -51,6 +51,7 @@ struct _GESGroupClass {
|
|||
};
|
||||
|
||||
GType ges_group_get_type (void);
|
||||
GESGroup *ges_group_new (void);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* _GES_GROUP_H */
|
||||
|
|
Loading…
Reference in a new issue