diff options
author | David Robillard <d@drobilla.net> | 2011-12-03 21:45:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-03 21:45:57 +0000 |
commit | 9393c08013974c53d398678f0c1b683a67ca1135 (patch) | |
tree | 1f42c56cf17bdd9fe7bfcc3d1a7243a4527d4b17 /src/gui/PatchPortModule.cpp | |
parent | d137d4444d135a22081f8702b628aee6b9672875 (diff) | |
download | ingen-9393c08013974c53d398678f0c1b683a67ca1135.tar.gz ingen-9393c08013974c53d398678f0c1b683a67ca1135.tar.bz2 ingen-9393c08013974c53d398678f0c1b683a67ca1135.zip |
Don't expose canvas data structures.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3775 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchPortModule.cpp')
-rw-r--r-- | src/gui/PatchPortModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp index 98326402..2083b929 100644 --- a/src/gui/PatchPortModule.cpp +++ b/src/gui/PatchPortModule.cpp @@ -47,7 +47,7 @@ PatchPortModule::PatchPortModule(PatchCanvas& canvas, assert(PtrCast<const PatchModel>(model->parent())); - set_stacked_border(model->polyphonic()); + set_stacked(model->polyphonic()); model->signal_property().connect( sigc::mem_fun(this, &PatchPortModule::property_changed)); @@ -123,7 +123,7 @@ PatchPortModule::show_human_names(bool b) void PatchPortModule::set_name(const std::string& n) { - _port->set_name(n); + _port->set_label(n.c_str()); _must_resize = true; } @@ -150,7 +150,7 @@ PatchPortModule::property_changed(const URI& key, const Atom& value) break; case Atom::BOOL: if (key == uris.ingen_polyphonic) { - set_stacked_border(value.get_bool()); + set_stacked(value.get_bool()); } else if (key == uris.ingen_selected) { if (value.get_bool() != get_selected()) { if (value.get_bool()) { |