summaryrefslogtreecommitdiffstats
path: root/src/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port.c')
-rw-r--r--src/port.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/port.c b/src/port.c
index dc4aed7..63efd2e 100644
--- a/src/port.c
+++ b/src/port.c
@@ -38,7 +38,9 @@ enum {
static void
ganv_port_init(GanvPort* port)
{
- port->impl = GANV_PORT_GET_PRIVATE(port);
+ port->impl = G_TYPE_INSTANCE_GET_PRIVATE(
+ port, GANV_TYPE_PORT, GanvPortImpl);
+
port->impl->is_input = TRUE;
}