diff options
author | David Robillard <d@drobilla.net> | 2012-03-12 06:59:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-12 06:59:48 +0000 |
commit | 81e9fb3245bd461ebfee4cfa16d1792e48533f9e (patch) | |
tree | eb1b30d79cba70dda9d832100dd7c14b08085b03 /src/gui/Controls.cpp | |
parent | e9d9569271ee962c09ab66c6babed1ca5655a6c6 (diff) | |
download | ingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.tar.gz ingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.tar.bz2 ingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.zip |
Centralise atom creation in forge object.
Aside from being more greppable and making realtime violations more obvious, this is a step towards using LV2 atoms internally (which needs a factory since the type numbers are dynamic).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4054 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Controls.cpp')
-rw-r--r-- | src/gui/Controls.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/Controls.cpp b/src/gui/Controls.cpp index d4a0575b..eba36d1d 100644 --- a/src/gui/Controls.cpp +++ b/src/gui/Controls.cpp @@ -267,7 +267,7 @@ SliderControl::update_value_from_spinner() _enable_signal = false; const float value = _value_spinner->get_value(); - set_value(value); + set_value(_app->forge().make(value)); _control_panel->value_changed(_port_model, value); @@ -391,8 +391,9 @@ void StringControl::activated() { if (_enable_signal) - _control_panel->value_changed_atom(_port_model, - Raul::Atom(_entry->get_text().c_str())); + _control_panel->value_changed_atom( + _port_model, + _app->forge().make(_entry->get_text().c_str())); } } // namespace GUI |