From cc9391319eb238c27489f70befe55d7dad84913a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 12 Jul 2013 11:55:46 -0400 Subject: [PATCH] group: Add an empty group constructor As it is more intuitive for users. API: ges_group_new --- ges/ges-group.c | 21 +++++++++++++++++++++ ges/ges-group.h | 1 + 2 files changed, 22 insertions(+) diff --git a/ges/ges-group.c b/ges/ges-group.c index 63f2577bf5..689bc8fb63 100644 --- a/ges/ges-group.c +++ b/ges/ges-group.c @@ -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); +} diff --git a/ges/ges-group.h b/ges/ges-group.h index 826b85e43c..06782cf86d 100644 --- a/ges/ges-group.h +++ b/ges/ges-group.h @@ -51,6 +51,7 @@ struct _GESGroupClass { }; GType ges_group_get_type (void); +GESGroup *ges_group_new (void); G_END_DECLS #endif /* _GES_GROUP_H */