diff options
author | David Robillard <d@drobilla.net> | 2011-10-03 02:18:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-03 02:18:42 +0000 |
commit | 8768c927968c2541bcac763d9a4f237081eaca4b (patch) | |
tree | 214b29607be379f4cab4d254562a9949677c5848 /src/gui/PortMenu.cpp | |
parent | af70d4f1e0927ea3e89b78fdf0de4247a32a39b4 (diff) | |
download | ingen-8768c927968c2541bcac763d9a4f237081eaca4b.tar.gz ingen-8768c927968c2541bcac763d9a4f237081eaca4b.tar.bz2 ingen-8768c927968c2541bcac763d9a4f237081eaca4b.zip |
Remove static PortType enumeration from public/client side interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3523 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PortMenu.cpp')
-rw-r--r-- | src/gui/PortMenu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp index 8dafd83f..6e51ee45 100644 --- a/src/gui/PortMenu.cpp +++ b/src/gui/PortMenu.cpp @@ -43,6 +43,8 @@ PortMenu::PortMenu(BaseObjectType* cobject, void PortMenu::init(SharedPtr<const PortModel> port, bool patch_port) { + const LV2URIMap& uris = App::instance().uris(); + ObjectMenu::init(port); _patch_port = patch_port; @@ -61,7 +63,7 @@ PortMenu::init(SharedPtr<const PortModel> port, bool patch_port) _destroy_menuitem->set_sensitive(false); } - if (port->is_a(PortType::EVENTS)) + if (port->is_a(uris.ev_EventPort)) _polyphonic_menuitem->hide(); const bool is_control = App::instance().can_control(port.get()) |