diff options
author | David Robillard <d@drobilla.net> | 2007-10-09 06:06:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-09 06:06:47 +0000 |
commit | d225ac9f9252b0ae07cd594bc5cb9b440fac311f (patch) | |
tree | f9bac7c690520dfb5b59cc6b89d2a5f38fa1a8e0 | |
parent | b98fd4bc7b8548cc2be538a91ce799fabbd3054f (diff) | |
download | ingen-d225ac9f9252b0ae07cd594bc5cb9b440fac311f.tar.gz ingen-d225ac9f9252b0ae07cd594bc5cb9b440fac311f.tar.bz2 ingen-d225ac9f9252b0ae07cd594bc5cb9b440fac311f.zip |
Blink ports connected to outputs when output blinks.
You can like, totally see the message, like, flow, man.
git-svn-id: http://svn.drobilla.net/lad/ingen@858 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/libs/gui/App.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libs/gui/App.cpp b/src/libs/gui/App.cpp index fb185384..e207bb9f 100644 --- a/src/libs/gui/App.cpp +++ b/src/libs/gui/App.cpp @@ -24,6 +24,7 @@ #include <time.h> #include <sys/time.h> #include <raul/Path.hpp> +#include <flowcanvas/Connection.hpp> #include "module/global.hpp" #include "module/Module.hpp" #include "module/World.hpp" @@ -220,6 +221,14 @@ 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) { + const SharedPtr<Port> dst = PtrCast<Port>(i->lock()->dest().lock()); + if (dst) + port_activity(dst.get()); + } + } + port->set_highlighted(true, false, true, false); } |