From: Robin Gareus Date: Sun, 31 Aug 2014 05:12:21 +0000 (+0200) Subject: update track-header width when track-number visibility is toggled X-Git-Tag: 4.0-rc1~1601^2~387 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=c993e2d37bf9f3269bbbe5e47ee391805354206d;p=ardour.git update track-header width when track-number visibility is toggled --- diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index a1c971bc4e..a8be3ccd0c 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -435,6 +435,13 @@ ARDOUR_UI::session_parameter_changed (std::string p) synchronize_sync_source_and_video_pullup (); reset_main_clocks (); editor->queue_visual_videotimeline_update(); + } else if (p == "track-name-number") { + /* DisplaySuspender triggers _route->redisplay() when going out of scope + * which eventually calls reset_controls_layout_width() and re-sets the + * track-header width. + * see also RouteTimeAxisView::update_track_number_visibility() + */ + DisplaySuspender ds; } } diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index bc86a79c14..6ea0af9a50 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -374,6 +374,7 @@ RouteTimeAxisView::label_view () void RouteTimeAxisView::update_track_number_visibility () { + DisplaySuspender ds; bool show_label = _session->config.get_track_name_number(); if (_route && _route->is_master()) {