mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
TranslatableString for names, labels, tooltips of wxPanelWrapper...
... and Grabber too
This commit is contained in:
@@ -271,7 +271,8 @@ void CellularPanel::HandleMotion
|
||||
auto oldCell = state.mLastCell.lock();
|
||||
auto oldHandle = Target();
|
||||
|
||||
wxString status{}, tooltip{};
|
||||
wxString status{};
|
||||
TranslatableString tooltip{};
|
||||
wxCursor *pCursor{};
|
||||
unsigned refreshCode = 0;
|
||||
|
||||
@@ -373,7 +374,7 @@ void CellularPanel::HandleMotion
|
||||
UpdateStatusMessage(status);
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
if (tooltip != GetToolTipText()) {
|
||||
if (tooltip.Translation() != GetToolTipText()) {
|
||||
// Unset first, by analogy with AButton
|
||||
UnsetToolTip();
|
||||
SetToolTip(tooltip);
|
||||
|
||||
Reference in New Issue
Block a user