summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/node.c b/src/node.c
index 6092924..7d4a8f2 100644
--- a/src/node.c
+++ b/src/node.c
@@ -256,12 +256,11 @@ ganv_node_set_label(GanvNode* node, const char* str)
"text", str,
NULL);
} else {
- impl->label = GANV_TEXT(ganv_item_new(
- GANV_GROUP(node),
- ganv_text_get_type(),
- "text", str,
- "color", 0xFFFFFFFF,
- NULL));
+ impl->label = GANV_TEXT(ganv_item_new(node,
+ ganv_text_get_type(),
+ "text", str,
+ "color", 0xFFFFFFFF,
+ NULL));
}
GanvNodeClass* klass = GANV_NODE_GET_CLASS(node);