Avoid jitter of track headers width when changing automation states
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sat, 20 Aug 2016 16:32:37 +0000 (18:32 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sat, 20 Aug 2016 16:32:37 +0000 (18:32 +0200)
gtk2_ardour/automation_time_axis.cc

index 434f1df9e172e9bb16b1ec2035d3daec1e59e4b2..05278a3520a47e8acd9dade67ca573cfacaf144b 100644 (file)
@@ -159,6 +159,12 @@ AutomationTimeAxisView::AutomationTimeAxisView (
        auto_dropdown.AddMenuElem (MenuElem (_("Touch"), sigc::bind (sigc::mem_fun(*this,
                                                &AutomationTimeAxisView::set_automation_state), (AutoState) Touch)));
 
+       /* XXX translators: use a string here that will be at least as long
+          as the longest automation label (see ::automation_state_changed()
+          below). be sure to include a descender.
+       */
+       auto_dropdown.set_sizing_text(_("Mgnual"));
+
        hide_button.set_icon (ArdourIcon::CloseCross);
        hide_button.set_tweaks(ArdourButton::TrackHeader);