mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Remove GTK workarounds (or the reason for them)
This commit is contained in:
parent
fdd725fc68
commit
dfcad8a926
@ -266,19 +266,10 @@ bool EffectBassTreble::InitPass2()
|
||||
void EffectBassTreble::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.StartVerticalLay(0);
|
||||
{
|
||||
S.StartStatic(wxT(""));
|
||||
{
|
||||
S.StartMultiColumn(3, wxEXPAND);
|
||||
S.SetStretchyCol(2);
|
||||
{
|
||||
#ifdef __WXGTK__
|
||||
// BoxSizer is to make first mnemonic work, on Linux.
|
||||
wxPanel* cPanel = new wxPanel(S.GetParent(), wxID_ANY);
|
||||
wxBoxSizer* cSizer = new wxBoxSizer(wxVERTICAL);
|
||||
cPanel->SetSizer(cSizer);
|
||||
#endif
|
||||
|
||||
// Bass control
|
||||
FloatingPointValidator<double> vldBass(1, &dB_bass);
|
||||
vldBass.SetRange(MIN_Bass, MAX_Bass);
|
||||
@ -314,8 +305,6 @@ void EffectBassTreble::PopulateOrExchange(ShuttleGui & S)
|
||||
mLevelS->SetPageSize(30);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
S.EndStatic();
|
||||
|
||||
// Normalize checkbox
|
||||
S.StartHorizontalLay(wxLEFT, true);
|
||||
|
@ -350,10 +350,7 @@ void EffectClickRemoval::PopulateOrExchange(ShuttleGui & S)
|
||||
mThreshS = S.Id(ID_Thresh).AddSlider(wxT(""), mThresholdLevel, MAX_Threshold, MIN_Threshold);
|
||||
mThreshS->SetName(_("Threshold"));
|
||||
mThreshS->SetValidator(wxGenericValidator(&mThresholdLevel));
|
||||
#if defined(__WXGTK__)
|
||||
// Force a minimum size since wxGTK allows it to go to zero
|
||||
mThreshS->SetMinSize(wxSize(100, -1));
|
||||
#endif
|
||||
mThreshS->SetMinSize(wxSize(150, -1));
|
||||
|
||||
// Click width
|
||||
IntegerValidator<int> vldWidth(&mClickWidth);
|
||||
@ -367,10 +364,7 @@ void EffectClickRemoval::PopulateOrExchange(ShuttleGui & S)
|
||||
mWidthS = S.Id(ID_Width).AddSlider(wxT(""), mClickWidth, MAX_Width, MIN_Width);
|
||||
mWidthS->SetName(_("Max Spike Width"));
|
||||
mWidthS->SetValidator(wxGenericValidator(&mClickWidth));
|
||||
#if defined(__WXGTK__)
|
||||
// Force a minimum size since wxGTK allows it to go to zero
|
||||
mWidthS->SetMinSize(wxSize(100, -1));
|
||||
#endif
|
||||
mWidthS->SetMinSize(wxSize(150, -1));
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
|
||||
|
@ -1691,13 +1691,6 @@ void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
|
||||
S.AddVariableText(_(
|
||||
"Select all of the audio you want filtered, choose how much noise you want\nfiltered out, and then click 'OK' to reduce noise.\n"));
|
||||
|
||||
#if defined(__WXGTK__)
|
||||
// Put everything inside a panel to workaround a problem on Linux where the access key
|
||||
// does not work if it is defined within static text on the first control.
|
||||
S.SetStyle(wxTAB_TRAVERSAL);
|
||||
S.StartPanel();
|
||||
#endif
|
||||
|
||||
S.StartMultiColumn(3, wxEXPAND);
|
||||
S.SetStretchyCol(2);
|
||||
{
|
||||
@ -1733,10 +1726,6 @@ void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
|
||||
#endif
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
|
||||
#if defined(__WXGTK__)
|
||||
S.EndPanel();
|
||||
#endif
|
||||
}
|
||||
S.EndStatic();
|
||||
|
||||
@ -1744,13 +1733,6 @@ void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
|
||||
#ifdef ADVANCED_SETTINGS
|
||||
S.StartStatic(_("Advanced Settings"));
|
||||
{
|
||||
#if defined(__WXGTK__)
|
||||
// Put everything inside a panel to workaround a problem on Linux where the access key
|
||||
// does not work if it is defined within static text on the first control.
|
||||
S.SetStyle(wxTAB_TRAVERSAL);
|
||||
S.StartPanel();
|
||||
#endif
|
||||
|
||||
S.StartMultiColumn(2);
|
||||
{
|
||||
{
|
||||
@ -1820,10 +1802,6 @@ void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
|
||||
}
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
|
||||
#if defined(__WXGTK__)
|
||||
S.EndPanel();
|
||||
#endif
|
||||
}
|
||||
S.EndStatic();
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user