13
0

Ellipsize inactive track-header name-label #9674

This commit is contained in:
Robin Gareus 2024-03-21 17:44:33 +01:00
parent 082297b932
commit bd4d6b4cba
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 0 deletions

View File

@ -151,12 +151,15 @@ AxisView::set_name_ellipsize_mode ()
switch (UIConfiguration::instance().get_time_axis_name_ellipsize_mode()) { switch (UIConfiguration::instance().get_time_axis_name_ellipsize_mode()) {
case -1: case -1:
name_label.set_ellipsize (Pango::ELLIPSIZE_START); name_label.set_ellipsize (Pango::ELLIPSIZE_START);
inactive_label.set_ellipsize (Pango::ELLIPSIZE_START);
break; break;
case 1: case 1:
name_label.set_ellipsize (Pango::ELLIPSIZE_END); name_label.set_ellipsize (Pango::ELLIPSIZE_END);
inactive_label.set_ellipsize (Pango::ELLIPSIZE_END);
break; break;
default: default:
name_label.set_ellipsize (Pango::ELLIPSIZE_MIDDLE); name_label.set_ellipsize (Pango::ELLIPSIZE_MIDDLE);
inactive_label.set_ellipsize (Pango::ELLIPSIZE_MIDDLE);
break; break;
} }
} }

View File

@ -160,6 +160,7 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie
inactive_label.set_name (X_("TrackNameEditor")); inactive_label.set_name (X_("TrackNameEditor"));
inactive_label.set_alignment (0.0, 0.5); inactive_label.set_alignment (0.0, 0.5);
inactive_label.set_width_chars (12);
set_tooltip (inactive_label, _("This track is inactive. (right-click to activate)")); set_tooltip (inactive_label, _("This track is inactive. (right-click to activate)"));
{ {