From d1f58cf5a46eca318d25d762968955edd4fad5a7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 3 May 2011 00:08:14 +0000 Subject: [PATCH] Don't hide solo/mute/rec enable for the smallest track height, as there appears to be no need to (#4014). git-svn-id: svn://localhost/ardour2/branches/3.0@9462 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/route_time_axis.cc | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 57e5903e82..c3c7e9d1f2 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -862,6 +862,9 @@ RouteTimeAxisView::set_height (uint32_t h) xml_node->add_property ("height", buf); if (height >= preset_height (HeightNormal)) { + + controls_table.set_border_width (2); + reset_meter(); show_name_entry (); hide_name_label (); @@ -885,6 +888,8 @@ RouteTimeAxisView::set_height (uint32_t h) } else if (height >= preset_height (HeightSmaller)) { + controls_table.set_border_width (2); + reset_meter(); show_name_entry (); hide_name_label (); @@ -908,31 +913,8 @@ RouteTimeAxisView::set_height (uint32_t h) } else { - - /* don't allow name_entry to be hidden while - it has focus, otherwise the GUI becomes unusable. - */ - - if (name_entry.has_focus()) { - if (name_entry.get_text() != _route->name()) { - name_entry_changed (); - } - controls_ebox.grab_focus (); - } - - hide_name_entry (); - show_name_label (); - - gm.get_gain_slider().hide(); - mute_button->hide(); - solo_button->hide(); - if (rec_enable_button) - rec_enable_button->hide(); - - route_group_button.hide (); - automation_button.hide (); - playlist_button.hide (); - name_label.set_text (_route->name()); + controls_table.set_border_width (0); + } if (height_changed && !no_redraw) {