diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
commit | 19928bb583e72802746b89e322f71ecc0fcb7427 (patch) | |
tree | 95912dc84d8c9dcf57939398514feaf148c1cd63 /src/gui/Controls.cpp | |
parent | 96f839e64de70a23210847e322d24690299287fe (diff) | |
download | ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.gz ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.bz2 ingen-19928bb583e72802746b89e322f71ecc0fcb7427.zip |
The great ID refactoring of 2009.
Path is now actually URI (scheme path: for now).
Therefore ingen nodes and such live in the same namespace as ... well, everything.
Including plugins.
Thar be profit, laddies.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1992 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Controls.cpp')
-rw-r--r-- | src/gui/Controls.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/Controls.cpp b/src/gui/Controls.cpp index 99335503..f163befe 100644 --- a/src/gui/Controls.cpp +++ b/src/gui/Controls.cpp @@ -29,9 +29,10 @@ #include "App.hpp" using namespace std; -using namespace Ingen::Client; +using namespace Raul; namespace Ingen { +using namespace Client; namespace GUI { @@ -187,13 +188,13 @@ SliderControl::set_value(const Atom& atom) void -SliderControl::port_variable_change(const string& key, const Atom& value) +SliderControl::port_variable_change(const URI& key, const Atom& value) { _enable_signal = false; - if (key == "lv2:minimum" && value.type() == Atom::FLOAT) + if (key.str() == "lv2:minimum" && value.type() == Atom::FLOAT) set_range(value.get_float(), _slider->get_adjustment()->get_upper()); - else if (key == "lv2:maximum" && value.type() == Atom::FLOAT) + else if (key.str() == "lv2:maximum" && value.type() == Atom::FLOAT) set_range(_slider->get_adjustment()->get_lower(), value.get_float()); _enable_signal = true; |