summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.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/time_axis_view.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/time_axis_view.cc')
-rw-r--r--gtk2_ardour/time_axis_view.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc
index 6ae0c3c5b8..f5b3cce11f 100644
--- a/gtk2_ardour/time_axis_view.cc
+++ b/gtk2_ardour/time_axis_view.cc
@@ -158,6 +158,10 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie
name_label.set_width_chars (12);
set_tooltip (name_label, _("Track/Bus name (double click to edit)"));
+ inactive_label.set_name (X_("TrackNameEditor"));
+ inactive_label.set_alignment (0.0, 0.5);
+ set_tooltip (inactive_label, _("This track is inactive. (right-click to activate)"));
+
{
boost::scoped_ptr<Gtk::Entry> an_entry (new FocusEntry);
an_entry->set_name (X_("TrackNameEditor"));
@@ -185,6 +189,10 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie
controls_table.show_all ();
controls_table.set_no_show_all ();
+ inactive_table.set_border_width (4); //try to match the offset of the label on an "active" track
+ inactive_table.attach (inactive_label, 0, 1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 0, 0);
+ controls_vbox.pack_start (inactive_table, false, false);
+
controls_vbox.pack_start (controls_table, false, false);
controls_vbox.show ();