1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 16:40:07 +02:00

Fix repaint of Mixer board after change of track name...

... Problem was introduced in 2.2.0 at commit dc05b94

Also, in MixerBoard, change name whenever changing the label, which might
matter to screen readers.
This commit is contained in:
Paul Licameli 2018-02-07 05:09:36 -05:00
parent 1498958562
commit 2b3be3208e
2 changed files with 3 additions and 1 deletions

View File

@ -461,6 +461,7 @@ void MixerTrackCluster::UpdateName()
const wxString newName = mTrack->GetName(); const wxString newName = mTrack->GetName();
SetName(newName); SetName(newName);
mStaticText_TrackName->SetLabel(newName); mStaticText_TrackName->SetLabel(newName);
mStaticText_TrackName->SetName(newName);
#if wxUSE_TOOLTIPS #if wxUSE_TOOLTIPS
mStaticText_TrackName->SetToolTip(newName); mStaticText_TrackName->SetToolTip(newName);
#endif #endif

View File

@ -1308,13 +1308,14 @@ auStaticText::auStaticText(wxWindow* parent, wxString textIn) :
SetBackgroundColour( theTheme.Colour( clrMedium)); SetBackgroundColour( theTheme.Colour( clrMedium));
SetForegroundColour( theTheme.Colour( clrTrackPanelText)); SetForegroundColour( theTheme.Colour( clrTrackPanelText));
SetName(textIn); SetName(textIn);
SetLabel(textIn);
} }
void auStaticText::OnPaint(wxPaintEvent & WXUNUSED(evt)) void auStaticText::OnPaint(wxPaintEvent & WXUNUSED(evt))
{ {
wxPaintDC dc(this); wxPaintDC dc(this);
//dc.SetTextForeground( theTheme.Colour( clrTrackPanelText)); //dc.SetTextForeground( theTheme.Colour( clrTrackPanelText));
dc.DrawText( GetName(), 0,0); dc.DrawText( GetLabel(), 0,0);
} }