From 8c8f2c1eadc44d1b34fea6eb2c87a9c3e0208330 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 Nov 2011 06:33:35 +0000 Subject: Remove linear searching for connections. Remove redundant connection lists stored in Connectable. Add arrange and straight connections options to flowcanvas_bench. Add Connection::set_curved(). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3652 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/App.cpp | 9 --------- src/gui/Connection.cpp | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'src') diff --git a/src/gui/App.cpp b/src/gui/App.cpp index c3fedd17..a4f9508d 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -241,15 +241,6 @@ App::port_activity(Port* port) if (inserted.second) inserted.first->second = false; - if (port->is_output()) { - for (Port::Connections::const_iterator i = port->connections().begin(); - i != port->connections().end(); ++i) { - Port* const dst = dynamic_cast((*i)->dest()); - if (dst) - port_activity(dst); - } - } - port->set_highlighted(true, false, true, false); } diff --git a/src/gui/Connection.cpp b/src/gui/Connection.cpp index 511f6044..6f24b124 100644 --- a/src/gui/Connection.cpp +++ b/src/gui/Connection.cpp @@ -35,7 +35,7 @@ Connection::Connection(FlowCanvas::Canvas& canvas, { Port* const src_port = dynamic_cast(src); if (src_port) - _bpath.property_dash() = src_port->dash(); + _bpath->property_dash() = src_port->dash(); } } // namespace GUI -- cgit v1.2.1