summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-04 17:36:40 +0200
committerRobin Gareus <robin@gareus.org>2016-05-04 17:36:40 +0200
commit106851b33a52b122cdded8fa2dd03c47bac955a9 (patch)
treedb2b6620d1bc2337ed1b9ad0cf40a28676dc937d /gtk2_ardour/route_time_axis.cc
parent6236c201bd4869e85f95b52aca0bcd4ae8d9a57e (diff)
add option to limit track-header meters to stereo
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 8243a78ca1..986a274ee6 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -124,6 +124,9 @@ RouteTimeAxisView::RouteTimeAxisView (PublicEditor& ed, Session* sess, ArdourCan
number_label.set_fallthrough_to_parent (true);
sess->config.ParameterChanged.connect (*this, invalidator (*this), boost::bind (&RouteTimeAxisView::parameter_changed, this, _1), gui_context());
+ UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &RouteTimeAxisView::parameter_changed));
+
+ parameter_changed ("editor-stereo-only-meters");
}
void
@@ -441,6 +444,12 @@ RouteTimeAxisView::parameter_changed (string const & p)
{
if (p == "track-name-number") {
update_track_number_visibility();
+ } else if (p == "editor-stereo-only-meters") {
+ if (UIConfiguration::instance().get_editor_stereo_only_meters()) {
+ gm.get_level_meter().set_max_audio_meter_count (2);
+ } else {
+ gm.get_level_meter().set_max_audio_meter_count (0);
+ }
}
}