diff options
author | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
commit | df8ee18c0139f889bf7c697713a2205364845464 (patch) | |
tree | 2d3d2389504676b194fcb47a9ed3e7b1da8f94c4 /src/libs/client/PluginModel.cpp | |
parent | f3f08e248a96f2a6d75d4fc6ee3dc34985805e58 (diff) | |
download | ingen-df8ee18c0139f889bf7c697713a2205364845464.tar.gz ingen-df8ee18c0139f889bf7c697713a2205364845464.tar.bz2 ingen-df8ee18c0139f889bf7c697713a2205364845464.zip |
Overhaul SLV2 API to return/take SLV2Value (instead of strings or primitives) wherever possible.
Make 'index' a fundemental property of ingen ports.
git-svn-id: http://svn.drobilla.net/lad/ingen@1113 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PluginModel.cpp')
-rw-r--r-- | src/libs/client/PluginModel.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libs/client/PluginModel.cpp b/src/libs/client/PluginModel.cpp index 83762566..df8d4bf7 100644 --- a/src/libs/client/PluginModel.cpp +++ b/src/libs/client/PluginModel.cpp @@ -102,7 +102,7 @@ PluginModel::ui(SharedPtr<EngineInterface> engine, SharedPtr<NodeModel> node) co Glib::Mutex::Lock(_rdf_world->mutex()); - return PluginUI::create(engine, node, _slv2_plugin); + return PluginUI::create(engine, node, _slv2_world, _slv2_plugin); } @@ -120,8 +120,10 @@ string PluginModel::get_lv2_icon_path(SLV2Plugin plugin) { string result; - SLV2Values paths = slv2_plugin_get_value(plugin, SLV2_URI, - "http://ll-plugins.nongnu.org/lv2/namespace#svgIcon"); + SLV2Value svg_icon_pred = slv2_value_new_uri(_slv2_world, + "http://ll-plugins.nongnu.org/lv2/namespace#svgIcon"); + + SLV2Values paths = slv2_plugin_get_value(plugin, svg_icon_pred); if (slv2_values_size(paths) > 0) { SLV2Value value = slv2_values_get_at(paths, 0); @@ -130,6 +132,7 @@ PluginModel::get_lv2_icon_path(SLV2Plugin plugin) slv2_values_free(paths); } + slv2_value_free(svg_icon_pred); return result; } |