diff options
author | David Robillard <d@drobilla.net> | 2007-10-03 23:24:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-03 23:24:59 +0000 |
commit | 8d56b7e97a7da0bcae1160b65153cc13fdf2428c (patch) | |
tree | 3c8a8a02008d2ee91cd6901c833b71bb285f3cca /src/libs/gui/NodeModule.cpp | |
parent | 34d19692c407c1474521cc7f93555fbbcfd8e833 (diff) | |
download | ingen-8d56b7e97a7da0bcae1160b65153cc13fdf2428c.tar.gz ingen-8d56b7e97a7da0bcae1160b65153cc13fdf2428c.tar.bz2 ingen-8d56b7e97a7da0bcae1160b65153cc13fdf2428c.zip |
Set initial values for embedded LV2 GUIs.
git-svn-id: http://svn.drobilla.net/lad/ingen@818 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/NodeModule.cpp')
-rw-r--r-- | src/libs/gui/NodeModule.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libs/gui/NodeModule.cpp b/src/libs/gui/NodeModule.cpp index b19cf3ef..61fb5984 100644 --- a/src/libs/gui/NodeModule.cpp +++ b/src/libs/gui/NodeModule.cpp @@ -193,10 +193,17 @@ NodeModule::embed_gui(bool embed) App::instance().engine()->disable_port_broadcasting((*p)->path()); } - if (embed && _gui_item) + if (embed && _gui_item) { + uint32_t index=0; + for (PortModelList::const_iterator p = _node->ports().begin(); p != _node->ports().end(); ++p) { + if ((*p)->is_control()) + control_change(index, (*p)->value()); + ++index; + } set_base_color(0x212222FF); - else + } else { set_default_base_color(); + } resize(); } |