summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2020-01-20 16:03:22 -0600
committerBen Loftis <ben@harrisonconsoles.com>2020-01-20 16:03:22 -0600
commitd8d737adc4408fd731254aa7e5e09b262358be68 (patch)
tree78604f9fdb808594bbcef64ce57788993aa77474 /gtk2_ardour/route_time_axis.cc
parent7966d02534e9b78d9233c4f92af5d82436949853 (diff)
Make it more obvious when a track is Inactive
Inactive tracks will now hide all controls and display only the track name in parenthesis. Color-change is not sufficient by itself to distinguish an inactive track from an active one (consider the case of just 2 tracks...)
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 8c659c6c3e..db5edd27d8 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -288,6 +288,7 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
}
update_track_number_visibility();
+ route_active_changed();
label_view ();
if (ARDOUR::Profile->get_mixbus()) {
@@ -424,6 +425,9 @@ RouteTimeAxisView::label_view ()
if (x != name_label.get_text ()) {
name_label.set_text (x);
}
+
+ inactive_label.set_text (string_compose("(%1)", x));
+
const int64_t track_number = _route->track_number ();
if (track_number == 0) {
number_label.set_text ("");