summaryrefslogtreecommitdiffstats
path: root/src/gui/PortPropertiesWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PortPropertiesWindow.cpp')
-rw-r--r--src/gui/PortPropertiesWindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/PortPropertiesWindow.cpp b/src/gui/PortPropertiesWindow.cpp
index ca962300..cca61ecd 100644
--- a/src/gui/PortPropertiesWindow.cpp
+++ b/src/gui/PortPropertiesWindow.cpp
@@ -71,7 +71,7 @@ PortPropertiesWindow::present(SharedPtr<const PortModel> pm)
boost::shared_ptr<NodeModel> parent = PtrCast<NodeModel>(_port_model->parent());
if (parent)
parent->port_value_range(_port_model, min, max,
- App::instance().sample_rate());
+ _app->sample_rate());
_initial_min = min;
_initial_max = max;
@@ -96,7 +96,7 @@ PortPropertiesWindow::present(SharedPtr<const PortModel> pm)
void
PortPropertiesWindow::property_changed(const URI& key, const Atom& value)
{
- const Shared::URIs& uris = App::instance().uris();
+ const Shared::URIs& uris = _app->uris();
if (value.type() == Atom::FLOAT) {
if (key == uris.lv2_minimum)
@@ -151,11 +151,11 @@ PortPropertiesWindow::cancel()
void
PortPropertiesWindow::ok()
{
- const Shared::URIs& uris = App::instance().uris();
+ const Shared::URIs& uris = _app->uris();
Resource::Properties props;
props.insert(make_pair(uris.lv2_minimum, float(_min_spinner->get_value())));
props.insert(make_pair(uris.lv2_maximum, float(_max_spinner->get_value())));
- App::instance().engine()->put(_port_model->path(), props);
+ _app->engine()->put(_port_model->path(), props);
hide();
}