+ //if (show_label == number_label.is_visible()) { return; }
+ if (number_label.get_parent()) {
+ controls_table.remove (number_label);
+ }
+ if (name_hbox.get_parent()) {
+ controls_table.remove (name_hbox);
+ }
+ if (show_label) {
+ controls_table.attach (number_label, 0, 1, 0, 1, Gtk::SHRINK, Gtk::FILL|Gtk::EXPAND, 3, 0);
+ controls_table.attach (name_hbox, 1, 5, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 3, 0);
+ number_label.set_size_request(3 + _session->track_number_decimals() * 8, -1);
+ name_hbox.show ();
+ number_label.show ();
+ } else {
+ controls_table.attach (name_hbox, 0, 5, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 3, 0);
+ name_hbox.show ();
+ number_label.hide ();
+ }
+}
+
+void
+RouteTimeAxisView::parameter_changed (string const & p)
+{
+ if (p == "track-name-number") {
+ update_track_number_visibility();
+ }