[libdazzle] tree-builder: add dzl_tree_builder_new()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] tree-builder: add dzl_tree_builder_new()
- Date: Sat, 2 Dec 2017 23:40:12 +0000 (UTC)
commit e5dd82845db1c2b40b6bc929e713a50cb51d1b14
Author: Christian Hergert <chergert redhat com>
Date: Sat Dec 2 15:39:39 2017 -0800
tree-builder: add dzl_tree_builder_new()
This can be used when only signals are used on the tree builder for
creating nodes.
src/tree/dzl-tree-builder.c | 6 ++++++
src/tree/dzl-tree-builder.h | 4 +++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/tree/dzl-tree-builder.c b/src/tree/dzl-tree-builder.c
index dd8d6d0..2006ba6 100644
--- a/src/tree/dzl-tree-builder.c
+++ b/src/tree/dzl-tree-builder.c
@@ -370,3 +370,9 @@ static void
dzl_tree_builder_init (DzlTreeBuilder *builder)
{
}
+
+DzlTreeBuilder *
+dzl_tree_builder_new (void)
+{
+ return g_object_new (DZL_TYPE_TREE_BUILDER, NULL);
+}
diff --git a/src/tree/dzl-tree-builder.h b/src/tree/dzl-tree-builder.h
index ae573cf..f6a5797 100644
--- a/src/tree/dzl-tree-builder.h
+++ b/src/tree/dzl-tree-builder.h
@@ -57,7 +57,9 @@ struct _DzlTreeBuilderClass
};
DZL_AVAILABLE_IN_ALL
-DzlTree *dzl_tree_builder_get_tree (DzlTreeBuilder *builder);
+DzlTree *dzl_tree_builder_get_tree (DzlTreeBuilder *builder);
+DZL_AVAILABLE_IN_3_28
+DzlTreeBuilder *dzl_tree_builder_new (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]