summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2013-07-12 11:55:46 -0400
committerThibault Saunier <thibault.saunier@collabora.com>2013-07-12 11:56:59 -0400
commitcc9391319eb238c27489f70befe55d7dad84913a (patch)
tree7e84ad4ab3db9643235731ebff088806e337a646
parent2723ef561e2f13dc463dc632a47cf62cf71ebdb6 (diff)
group: Add an empty group constructor
As it is more intuitive for users. API: ges_group_new
-rw-r--r--ges/ges-group.c21
-rw-r--r--ges/ges-group.h1
2 files changed, 22 insertions, 0 deletions
diff --git a/ges/ges-group.c b/ges/ges-group.c
index 63f2577..689bc8f 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 826b85e..06782cf 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 */