summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-22 05:29:18 +0000
committerDavid Robillard <d@drobilla.net>2013-01-22 05:29:18 +0000
commit85e5ce6b18c595875618cb7582c2040bd6260f3d (patch)
treea8a940f41346cce61b7d57f0b85dbc5f15be37bb /src/gui
parent40610f213fe4e758d1a79d13ca7e851014cf2c69 (diff)
downloadingen-85e5ce6b18c595875618cb7582c2040bd6260f3d.tar.gz
ingen-85e5ce6b18c595875618cb7582c2040bd6260f3d.tar.bz2
ingen-85e5ce6b18c595875618cb7582c2040bd6260f3d.zip
Support directly passing any type of atom to plugin UIs.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5006 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeModule.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 77ec41ca..bbafa44f 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -168,16 +168,7 @@ NodeModule::value_changed(uint32_t index, const Raul::Atom& value)
if (!_plugin_ui)
return;
- float float_val = 0.0f;
- const URIs& uris = app().uris();
-
- if (value.type() == uris.forge.Float) {
- float_val = value.get_float();
- _plugin_ui->port_event(index, 4, 0, &float_val);
- } else if (value.type() == uris.forge.String) {
- _plugin_ui->port_event(
- index, strlen(value.get_string()), 0, value.get_string());
- }
+ _plugin_ui->port_event(index, value.size(), value.type(), value.get_body());
}
void