1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 16:39:30 +02:00

Bug 1685: garbage status bar messages and tooltips, scrub in Windows

This commit is contained in:
Paul Licameli 2017-07-14 23:02:32 -04:00
parent 558efda20c
commit 812f3649de
4 changed files with 5 additions and 5 deletions

View File

@ -270,7 +270,7 @@ int ToolsToolBar::GetDownTool()
return firstTool; // Should never happen
}
const wxChar * ToolsToolBar::GetMessageForTool( int ToolNumber ) const
wxString ToolsToolBar::GetMessageForTool( int ToolNumber ) const
{
wxASSERT( ToolNumber >= 0 );
wxASSERT( ToolNumber < numTools );

View File

@ -62,7 +62,7 @@ class ToolsToolBar final : public ToolBar {
bool IsDown(int tool) const;
int GetDownTool();
const wxChar * GetMessageForTool( int ToolNumber ) const;
wxString GetMessageForTool( int ToolNumber ) const;
void Populate();
void Repaint(wxDC * WXUNUSED(dc)) override {};

View File

@ -959,9 +959,9 @@ const wxString &Scrubber::GetUntranslatedStateString() const
return empty;
}
const wxString & Scrubber::StatusMessageForWave() const
wxString Scrubber::StatusMessageForWave() const
{
static wxString result;
wxString result;
result = "";
if( Seeks() )

View File

@ -130,7 +130,7 @@ public:
// A string to put in the leftmost part of the status bar
// when scrub or seek is in progress, or else empty.
const wxString &GetUntranslatedStateString() const;
const wxString &StatusMessageForWave() const;
wxString StatusMessageForWave() const;
// All possible status strings.
static std::vector<wxString> GetAllUntranslatedStatusStrings();