diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-08-22 16:02:04 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-08-23 22:59:43 +0200 |
commit | 452e22e9c91b9872a59eba9f0c13199d5b32d34d (patch) | |
tree | fc9e9a61f3cbd115c4c411f586ff9dcd58a24d7b /gtk2_ardour/mixer_strip.h | |
parent | 8119026bc8243a4d9a43dc459da6c1c0ca5031b3 (diff) |
Improve maybe_add_bundle_to_output_menu
Avoid proposing the monitor section in the list if the current route is
not the master bus. Also allow the caller to pass a DataType as argument
to allow partial bundle match on that datatype only.
Diffstat (limited to 'gtk2_ardour/mixer_strip.h')
-rw-r--r-- | gtk2_ardour/mixer_strip.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_strip.h b/gtk2_ardour/mixer_strip.h index 6b5553d6bb..e4cecf3586 100644 --- a/gtk2_ardour/mixer_strip.h +++ b/gtk2_ardour/mixer_strip.h @@ -236,7 +236,8 @@ private: Gtk::Menu output_menu; std::list<boost::shared_ptr<ARDOUR::Bundle> > output_menu_bundles; - void maybe_add_bundle_to_output_menu (boost::shared_ptr<ARDOUR::Bundle>, ARDOUR::BundleList const &); + void maybe_add_bundle_to_output_menu (boost::shared_ptr<ARDOUR::Bundle>, ARDOUR::BundleList const &, + ARDOUR::DataType type = ARDOUR::DataType::NIL); void bundle_input_chosen (boost::shared_ptr<ARDOUR::Bundle>); void bundle_output_chosen (boost::shared_ptr<ARDOUR::Bundle>); |