diff options
author | David Robillard <d@drobilla.net> | 2010-01-02 21:36:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-01-02 21:36:16 +0000 |
commit | a5dcac142ad4abe1403a5f5ca4b65a38db808e93 (patch) | |
tree | de0b33432dd3e6e48663da118caa1ffbdbe15bc0 /src | |
parent | 3dded8a655b6cad1925f160cb1012b8334e00c3e (diff) | |
download | ingen-a5dcac142ad4abe1403a5f5ca4b65a38db808e93.tar.gz ingen-a5dcac142ad4abe1403a5f5ca4b65a38db808e93.tar.bz2 ingen-a5dcac142ad4abe1403a5f5ca4b65a38db808e93.zip |
Don't show control window controls for audio inputs (fix ticket #464).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2328 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/ControlPanel.cpp | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp index 4aea2f08..96559dbf 100644 --- a/src/gui/ControlPanel.cpp +++ b/src/gui/ControlPanel.cpp @@ -115,21 +115,26 @@ ControlPanel::add_port(SharedPtr<PortModel> pm) // Add port if (pm->is_input()) { - if (pm->type().is_control() && pm->is_toggle()) { - ToggleControl* tc; - Glib::RefPtr<Gnome::Glade::Xml> xml = GladeFactory::new_glade_reference("toggle_control"); - xml->get_widget_derived("toggle_control", tc); - control = tc; + if (pm->type().is_control()) { + if (pm->is_toggle()) { + ToggleControl* tc; + Glib::RefPtr<Gnome::Glade::Xml> xml + = GladeFactory::new_glade_reference("toggle_control"); + xml->get_widget_derived("toggle_control", tc); + control = tc; + } else { + SliderControl* sc; + Glib::RefPtr<Gnome::Glade::Xml> xml + = GladeFactory::new_glade_reference("control_strip"); + xml->get_widget_derived("control_strip", sc); + control = sc; + } } else if (pm->type().is_value() || pm->type().is_message()) { StringControl* sc; - Glib::RefPtr<Gnome::Glade::Xml> xml = GladeFactory::new_glade_reference("string_control"); + Glib::RefPtr<Gnome::Glade::Xml> xml + = GladeFactory::new_glade_reference("string_control"); xml->get_widget_derived("string_control", sc); control = sc; - } else { - SliderControl* sc; - Glib::RefPtr<Gnome::Glade::Xml> xml = GladeFactory::new_glade_reference("control_strip"); - xml->get_widget_derived("control_strip", sc); - control = sc; } } |