[libdazzle] tree: set marshaller and va marshallers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] tree: set marshaller and va marshallers
- Date: Fri, 8 Sep 2017 00:01:18 +0000 (UTC)
commit e9ab8672207f137383a30bcfebb2ac98773dc4d1
Author: Christian Hergert <chergert redhat com>
Date: Thu Sep 7 16:54:38 2017 -0700
tree: set marshaller and va marshallers
src/tree/dzl-tree-builder.c | 30 +++++++++++++++++++++++++-----
1 files changed, 25 insertions(+), 5 deletions(-)
---
diff --git a/src/tree/dzl-tree-builder.c b/src/tree/dzl-tree-builder.c
index 27ecb12..457c076 100644
--- a/src/tree/dzl-tree-builder.c
+++ b/src/tree/dzl-tree-builder.c
@@ -229,20 +229,28 @@ dzl_tree_builder_class_init (DzlTreeBuilderClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (DzlTreeBuilderClass, added),
- NULL, NULL, NULL,
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE,
1,
DZL_TYPE_TREE);
+ g_signal_set_va_marshaller (signals [ADDED],
+ G_TYPE_FROM_CLASS (klass),
+ g_cclosure_marshal_VOID__OBJECTv);
signals [BUILD_NODE] =
g_signal_new ("build-node",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (DzlTreeBuilderClass, build_node),
- NULL, NULL, NULL,
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE,
1,
DZL_TYPE_TREE_NODE);
+ g_signal_set_va_marshaller (signals [BUILD_NODE],
+ G_TYPE_FROM_CLASS (klass),
+ g_cclosure_marshal_VOID__OBJECTv);
signals [NODE_ACTIVATED] =
g_signal_new ("node-activated",
@@ -270,30 +278,42 @@ dzl_tree_builder_class_init (DzlTreeBuilderClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (DzlTreeBuilderClass, node_selected),
- NULL, NULL, NULL,
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE,
1,
DZL_TYPE_TREE_NODE);
+ g_signal_set_va_marshaller (signals [NODE_SELECTED],
+ G_TYPE_FROM_CLASS (klass),
+ g_cclosure_marshal_VOID__OBJECTv);
signals [NODE_UNSELECTED] =
g_signal_new ("node-unselected",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (DzlTreeBuilderClass, node_unselected),
- NULL, NULL, NULL,
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE,
1,
DZL_TYPE_TREE_NODE);
+ g_signal_set_va_marshaller (signals [NODE_UNSELECTED],
+ G_TYPE_FROM_CLASS (klass),
+ g_cclosure_marshal_VOID__OBJECTv);
signals [REMOVED] =
g_signal_new ("removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (DzlTreeBuilderClass, removed),
- NULL, NULL, NULL,
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE,
1,
DZL_TYPE_TREE);
+ g_signal_set_va_marshaller (signals [REMOVED],
+ G_TYPE_FROM_CLASS (klass),
+ g_cclosure_marshal_VOID__OBJECTv);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]