summaryrefslogtreecommitdiffstats
path: root/src/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port.c')
-rw-r--r--src/port.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/port.c b/src/port.c
index d220601..e8e6754 100644
--- a/src/port.c
+++ b/src/port.c
@@ -273,6 +273,8 @@ ganv_port_new(GanvModule* module,
GanvPort* port = GANV_PORT(
g_object_new(ganv_port_get_type(), NULL));
+ port->impl->is_input = is_input;
+
GanvItem* item = GANV_ITEM(port);
va_list args;
va_start(args, first_prop_name);
@@ -281,8 +283,6 @@ ganv_port_new(GanvModule* module,
first_prop_name, args);
va_end(args);
- port->impl->is_input = is_input;
-
GanvBox* box = GANV_BOX(port);
box->impl->radius_tl = (is_input ? 0.0 : 4.0);
box->impl->radius_tr = (is_input ? 4.0 : 0.0);
@@ -309,7 +309,6 @@ ganv_port_new(GanvModule* module,
}
}
- ganv_module_add_port(module, port);
return port;
}