diff options
author | David Robillard <d@drobilla.net> | 2008-08-19 00:13:04 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-19 00:13:04 +0000 |
commit | cc8264c1368e6a3891022ddca7dcf2c79df5cf2d (patch) | |
tree | d496af790dba6fd70943ab952ab7006c8e857838 /src/libs/gui | |
parent | 3acc63156da8146d609e3c6b7d0326b224b46be6 (diff) | |
download | ingen-cc8264c1368e6a3891022ddca7dcf2c79df5cf2d.tar.gz ingen-cc8264c1368e6a3891022ddca7dcf2c79df5cf2d.tar.bz2 ingen-cc8264c1368e6a3891022ddca7dcf2c79df5cf2d.zip |
Write lv2:index for patch ports.
git-svn-id: http://svn.drobilla.net/lad/ingen@1438 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui')
-rw-r--r-- | src/libs/gui/PatchCanvas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp index a588671e..f527041b 100644 --- a/src/libs/gui/PatchCanvas.cpp +++ b/src/libs/gui/PatchCanvas.cpp @@ -665,13 +665,13 @@ PatchCanvas::menu_add_control(ControlType type) void PatchCanvas::menu_add_port(const string& name, const string& type, bool is_output) { - // FIXME: bundleify const Path& path = _patch->path().base() + generate_port_name(name); - // FIXME: index - App::instance().engine()->new_port(path, 0, type, is_output); + App::instance().engine()->bundle_begin(); + App::instance().engine()->new_port(path, _patch->num_ports(), type, is_output); GraphObject::Variables data = get_initial_data(); for (GraphObject::Variables::const_iterator i = data.begin(); i != data.end(); ++i) App::instance().engine()->set_variable(path, i->first, i->second); + App::instance().engine()->bundle_end(); } |