summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-07 05:19:18 +0000
committerDavid Robillard <d@drobilla.net>2011-03-07 05:19:18 +0000
commit3dddff18969b94438bc44b8d3d3c769b9ffc0a1b (patch)
tree1127b7789d9cecca298c9aae5f45b2905e401fa0 /src
parente625510e40ab43400a4e7004c763fa3734dc1775 (diff)
downloadingen-3dddff18969b94438bc44b8d3d3c769b9ffc0a1b.tar.gz
ingen-3dddff18969b94438bc44b8d3d3c769b9ffc0a1b.tar.bz2
ingen-3dddff18969b94438bc44b8d3d3c769b9ffc0a1b.zip
Update for new SLV2 UI API.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3047 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/client/PluginUI.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp
index 19c0fe03..6ae2623c 100644
--- a/src/client/PluginUI.cpp
+++ b/src/client/PluginUI.cpp
@@ -126,14 +126,18 @@ PluginUI::create(Ingen::Shared::World* world,
SLV2UI ui = slv2_plugin_get_default_ui(plugin, gtk_ui);
+ SLV2UIHost ui_host = slv2_ui_host_new(
+ ret.get(), lv2_ui_write, NULL, NULL, NULL);
+
SLV2UIInstance instance = slv2_ui_instance_new(
plugin,
ui,
gtk_ui,
- lv2_ui_write,
- ret.get(),
+ ui_host,
ret->_features->array());
+ slv2_ui_host_free(ui_host);
+
if (instance) {
ret->_instance = instance;
} else {