From 3dddff18969b94438bc44b8d3d3c769b9ffc0a1b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 7 Mar 2011 05:19:18 +0000 Subject: Update for new SLV2 UI API. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3047 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginUI.cpp | 8 ++++++-- 1 file 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 { -- cgit v1.2.1