diff options
author | David Robillard <d@drobilla.net> | 2012-03-19 20:16:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-19 20:16:46 +0000 |
commit | 254b434f0a79fea54bd963e8ff2e845a5b0cd3a6 (patch) | |
tree | ddf849fc5b64d1096846c28c1f1a742f54c3adff /src/client/PortModel.cpp | |
parent | bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9 (diff) | |
download | ingen-254b434f0a79fea54bd963e8ff2e845a5b0cd3a6.tar.gz ingen-254b434f0a79fea54bd963e8ff2e845a5b0cd3a6.tar.bz2 ingen-254b434f0a79fea54bd963e8ff2e845a5b0cd3a6.zip |
Partially functioning communication between Ingen LV2 plugin and UI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4078 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PortModel.cpp')
-rw-r--r-- | src/client/PortModel.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp index afd28816..ba335ce9 100644 --- a/src/client/PortModel.cpp +++ b/src/client/PortModel.cpp @@ -35,13 +35,15 @@ PortModel::on_property(const Raul::URI& uri, const Raul::Atom& value) bool PortModel::supports(const Raul::URI& value_type) const { - return has_property(_uris.atom_supports, value_type); + return has_property(_uris.atom_supports, + _uris.forge.alloc_uri(value_type.str())); } bool PortModel::port_property(const Raul::URI& uri) const { - return has_property(_uris.lv2_portProperty, uri); + return has_property(_uris.lv2_portProperty, + _uris.forge.alloc_uri(uri.str())); } void @@ -66,7 +68,7 @@ PortModel::has_context(const Raul::URI& uri) const if (uri == _uris.ctx_audioContext && !context.is_valid()) return true; else - return context == uri; + return context == _uris.forge.alloc_uri(uri.str()); } } // namespace Client |