summaryrefslogtreecommitdiffstats
path: root/src/Legend.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-05-05 14:38:16 +0000
committerDavid Robillard <d@drobilla.net>2014-05-05 14:38:16 +0000
commit0fe8ea55644ad70bcb10b4b2c840370fdc2339c5 (patch)
tree1bcf11d6db3ff1530d1e18c099b258388480b6e8 /src/Legend.hpp
parent5336348b38ae02754f043ac0efa6d45ea6cea09b (diff)
downloadpatchage-0fe8ea55644ad70bcb10b4b2c840370fdc2339c5.tar.gz
patchage-0fe8ea55644ad70bcb10b4b2c840370fdc2339c5.tar.bz2
patchage-0fe8ea55644ad70bcb10b4b2c840370fdc2339c5.zip
Support Jack CV and OSC via metadata.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5398 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Legend.hpp')
-rw-r--r--src/Legend.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Legend.hpp b/src/Legend.hpp
index 4c8f57f..2e9fabf 100644
--- a/src/Legend.hpp
+++ b/src/Legend.hpp
@@ -25,9 +25,13 @@
class Legend : public Gtk::HBox {
public:
Legend(const Configuration& configuration) {
- add_button(JACK_AUDIO, "Audio", configuration.get_port_color(JACK_AUDIO));
- add_button(JACK_MIDI, "JACK MIDI", configuration.get_port_color(JACK_MIDI));
- add_button(ALSA_MIDI, "ALSA MIDI", configuration.get_port_color(ALSA_MIDI));
+ add_button(JACK_AUDIO, "Audio", configuration.get_port_color(JACK_AUDIO));
+#ifdef HAVE_JACK_METADATA
+ add_button(JACK_CV, "CV", configuration.get_port_color(JACK_CV));
+ add_button(JACK_OSC, "OSC", configuration.get_port_color(JACK_OSC));
+#endif
+ add_button(JACK_MIDI, "MIDI", configuration.get_port_color(JACK_MIDI));
+ add_button(ALSA_MIDI, "ALSA MIDI", configuration.get_port_color(ALSA_MIDI));
show_all_children();
}