summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-09 06:06:47 +0000
committerDavid Robillard <d@drobilla.net>2007-10-09 06:06:47 +0000
commitd225ac9f9252b0ae07cd594bc5cb9b440fac311f (patch)
treef9bac7c690520dfb5b59cc6b89d2a5f38fa1a8e0 /src
parentb98fd4bc7b8548cc2be538a91ce799fabbd3054f (diff)
downloadingen-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
Diffstat (limited to 'src')
-rw-r--r--src/libs/gui/App.cpp9
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);
}