mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +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;
|
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);
|
GType ges_group_get_type (void);
|
||||||
|
GESGroup *ges_group_new (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
#endif /* _GES_GROUP_H */
|
#endif /* _GES_GROUP_H */
|
||||||
|
|
Loading…
Reference in a new issue