group: Add an empty group constructor

As it is more intuitive for users.

API:
  ges_group_new
This commit is contained in:
Thibault Saunier 2013-07-12 11:55:46 -04:00
parent 2723ef561e
commit cc9391319e
2 changed files with 22 additions and 0 deletions

View file

@ -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);
}

View file

@ -51,6 +51,7 @@ struct _GESGroupClass {
};
GType ges_group_get_type (void);
GESGroup *ges_group_new (void);
G_END_DECLS
#endif /* _GES_GROUP_H */