summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-03 05:31:23 +0000
committerDavid Robillard <d@drobilla.net>2011-05-03 05:31:23 +0000
commit65c1d0b1517ecdfd67a04fee378a87c7fade4697 (patch)
tree76236294179e4f6f6a65db3f985efacffeb741f5 /src/gui
parent4e16083b2f407ce9d4daed623cdd2e410ecee207 (diff)
downloadingen-65c1d0b1517ecdfd67a04fee378a87c7fade4697.tar.gz
ingen-65c1d0b1517ecdfd67a04fee378a87c7fade4697.tar.bz2
ingen-65c1d0b1517ecdfd67a04fee378a87c7fade4697.zip
Replace lilv_plugin_get_value_for_subject with lilv_world_find_nodes.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3247 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeMenu.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp
index 6cf45f75..793f1b39 100644
--- a/src/gui/NodeMenu.cpp
+++ b/src/gui/NodeMenu.cpp
@@ -99,8 +99,8 @@ NodeMenu::init(SharedPtr<NodeModel> node)
LILV_FOREACH(nodes, i, presets) {
const LilvNode* uri = lilv_nodes_get(presets, i);
- LilvNodes* titles = lilv_plugin_get_value_for_subject(
- plugin->lilv_plugin(), uri, title_pred);
+ LilvNodes* titles = lilv_world_find_nodes(
+ plugin->lilv_world(), uri, title_pred, NULL);
if (titles) {
const LilvNode* title = lilv_nodes_get_first(titles);
_presets_menu->items().push_back(
@@ -192,17 +192,18 @@ NodeMenu::on_preset_activated(const std::string& uri)
plugin->lilv_world(),
"http://lv2plug.in/ns/ext/presets#value");
LilvNode* subject = lilv_new_uri(plugin->lilv_world(), uri.c_str());
- LilvNodes* ports = lilv_plugin_get_value_for_subject(
- plugin->lilv_plugin(),
+ LilvNodes* ports = lilv_world_find_nodes(
+ plugin->lilv_world(),
subject,
- port_pred);
+ port_pred,
+ NULL);
App::instance().engine()->bundle_begin();
LILV_FOREACH(nodes, i, ports) {
- const LilvNode* uri = lilv_nodes_get(ports, i);
- LilvNodes* values = lilv_plugin_get_value_for_subject(
- plugin->lilv_plugin(), uri, value_pred);
- LilvNodes* symbols = lilv_plugin_get_value_for_subject(
- plugin->lilv_plugin(), uri, symbol_pred);
+ const LilvNode* uri = lilv_nodes_get(ports, i);
+ LilvNodes* values = lilv_world_find_nodes(
+ plugin->lilv_world(), uri, value_pred, NULL);
+ LilvNodes* symbols = lilv_world_find_nodes(
+ plugin->lilv_world(), uri, symbol_pred, NULL);
if (values && symbols) {
const LilvNode* val = lilv_nodes_get_first(values);
const LilvNode* sym = lilv_nodes_get_first(symbols);