summaryrefslogtreecommitdiffstats
path: root/src/gui/PortMenu.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-12 23:42:17 +0000
committerDavid Robillard <d@drobilla.net>2012-08-12 23:42:17 +0000
commitefe8e2311ee2fed881f95cc1e72825906d21c7c1 (patch)
tree371c03610f691f0b97137b9e5b2f756b21fc5583 /src/gui/PortMenu.cpp
parente63caf72f320ab683de6378ff6f2944890054cbf (diff)
downloadingen-efe8e2311ee2fed881f95cc1e72825906d21c7c1.tar.gz
ingen-efe8e2311ee2fed881f95cc1e72825906d21c7c1.tar.bz2
ingen-efe8e2311ee2fed881f95cc1e72825906d21c7c1.zip
Use ingen:root as the path for the root patch, opening up path space for engine/driver/etc.
Strict conversion between Path and URI (Path no longer is-a URI). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4672 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PortMenu.cpp')
-rw-r--r--src/gui/PortMenu.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp
index 9b1f8aa0..b2a7cc21 100644
--- a/src/gui/PortMenu.cpp
+++ b/src/gui/PortMenu.cpp
@@ -105,7 +105,7 @@ PortMenu::on_menu_set_min()
SharedPtr<const PortModel> model = PtrCast<const PortModel>(_object);
const Raul::Atom& value = model->get_property(uris.ingen_value);
if (value.is_valid())
- _app->interface()->set_property(_object->path(), uris.lv2_minimum, value);
+ _app->interface()->set_property(_object->uri(), uris.lv2_minimum, value);
}
void
@@ -115,7 +115,7 @@ PortMenu::on_menu_set_max()
SharedPtr<const PortModel> model = PtrCast<const PortModel>(_object);
const Raul::Atom& value = model->get_property(uris.ingen_value);
if (value.is_valid())
- _app->interface()->set_property(_object->path(), uris.lv2_maximum, value);
+ _app->interface()->set_property(_object->uri(), uris.lv2_maximum, value);
}
void
@@ -129,12 +129,12 @@ PortMenu::on_menu_reset_range()
parent->default_port_value_range(model, min, max);
if (!std::isnan(min))
- _app->interface()->set_property(_object->path(),
+ _app->interface()->set_property(_object->uri(),
uris.lv2_minimum,
_app->forge().make(min));
if (!std::isnan(max))
- _app->interface()->set_property(_object->path(),
+ _app->interface()->set_property(_object->uri(),
uris.lv2_maximum,
_app->forge().make(max));
}
@@ -162,7 +162,7 @@ PortMenu::on_menu_expose()
r.set_property(uris.ingen_canvasX, _app->forge().make(node_x + x_off));
r.set_property(uris.ingen_canvasY, _app->forge().make(node_y + y_off));
- _app->interface()->put(path, r.properties());
+ _app->interface()->put(GraphObject::path_to_uri(path), r.properties());
if (port->is_input()) {
_app->interface()->connect(path, _object->path());