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/gui/PatchView.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/gui/PatchView.cpp')
-rw-r--r-- | src/gui/PatchView.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/PatchView.cpp b/src/gui/PatchView.cpp index 4506a651..a5932a23 100644 --- a/src/gui/PatchView.cpp +++ b/src/gui/PatchView.cpp @@ -207,6 +207,8 @@ void PatchView::refresh_clicked() { _app->engine()->get(_patch->path()); + Raul::warn << "Refresh plugins" << std::endl; + _app->engine()->get("ingen:plugins"); } void @@ -214,10 +216,11 @@ PatchView::property_changed(const Raul::URI& predicate, const Raul::Atom& value) { _enable_signal = false; if (predicate == _app->uris().ingen_enabled) { - if (value.type() == Atom::BOOL) - _process_but->set_active(value.get_bool()); - else - warn << "Bad type for ingen:enabled variable: " << value.type() << endl; + if (value.type() == _app->uris().forge.Bool) { + _process_but->set_active(value.get_bool()); + } else { + warn << "Bad type for ingen:enabled variable: " << value.type() << endl; + } } _enable_signal = true; } |