diff options
author | David Robillard <d@drobilla.net> | 2012-11-14 04:51:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-11-14 04:51:59 +0000 |
commit | a1712c2f1ea3e7bc1de99e40bc7f33ab6c92332d (patch) | |
tree | 762946d242f7e0827e95ac52fa7c4a5fd1c74058 /src/module.c | |
parent | dbb57216238de87aaf0486862d0395374af14120 (diff) | |
download | ganv-a1712c2f1ea3e7bc1de99e40bc7f33ab6c92332d.tar.gz ganv-a1712c2f1ea3e7bc1de99e40bc7f33ab6c92332d.tar.bz2 ganv-a1712c2f1ea3e7bc1de99e40bc7f33ab6c92332d.zip |
Fix wonky edge selection behaviour when selecting ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4814 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/module.c')
-rw-r--r-- | src/module.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/module.c b/src/module.c index be79d88..98e7272 100644 --- a/src/module.c +++ b/src/module.c @@ -296,7 +296,8 @@ resize_right(GanvModule* module) last_was_input = TRUE; ganv_canvas_for_each_edge_to( - canvas, pnode, ganv_edge_update_location); + canvas, pnode, + (GanvEdgeFunc)ganv_edge_update_location, NULL); } else { if (!m.horiz || !last_was_input) { y = header_height + 2.0 + (i * (h + 2.0)); @@ -307,7 +308,8 @@ resize_right(GanvModule* module) last_was_input = FALSE; ganv_canvas_for_each_edge_from( - canvas, pnode, ganv_edge_update_location); + canvas, pnode, + (GanvEdgeFunc)ganv_edge_update_location, NULL); } } @@ -365,13 +367,15 @@ resize_down(GanvModule* module) if (p->impl->is_input) { in_x = PAD + (in_count++ * (port_breadth + PAD)); ganv_node_move_to(pnode, in_x, 0); - ganv_canvas_for_each_edge_to(canvas, pnode, - ganv_edge_update_location); + ganv_canvas_for_each_edge_to( + canvas, pnode, + (GanvEdgeFunc)ganv_edge_update_location, NULL); } else { out_x = PAD + (out_count++ * (port_breadth + PAD)); ganv_node_move_to(pnode, out_x, height - ganv_box_get_height(pbox)); - ganv_canvas_for_each_edge_from(canvas, pnode, - ganv_edge_update_location); + ganv_canvas_for_each_edge_from( + canvas, pnode, + (GanvEdgeFunc)ganv_edge_update_location, NULL); } } |