summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node.c b/src/node.c
index a728cb0..8e8e0ad 100644
--- a/src/node.c
+++ b/src/node.c
@@ -14,7 +14,6 @@
*/
#include "ganv/canvas.h"
-#include "ganv/canvas-base.h"
#include "ganv/node.h"
#include "./boilerplate.h"
@@ -169,8 +168,8 @@ ganv_node_set_property(GObject* object,
break;
case PROP_CANVAS:
if (!GANV_ITEM(object)->parent) {
- GanvCanvasBase* canvas = GANV_CANVAS_BASE(g_value_get_object(value));
- g_object_set(object, "parent", ganv_canvas_base_root(canvas), NULL);
+ GanvCanvas* canvas = GANV_CANVAS(g_value_get_object(value));
+ g_object_set(object, "parent", ganv_canvas_root(canvas), NULL);
ganv_canvas_add_node(GANV_CANVAS(canvas), node);
} else {
g_warning("Cannot change `canvas' property after construction");