mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-03 01:19:24 +02:00
Put the "Debug" button in the right place on OSX
This commit is contained in:
parent
f0d1dda3f9
commit
d7ffab7825
11
src/ShuttleGui.cpp
Normal file → Executable file
11
src/ShuttleGui.cpp
Normal file → Executable file
@ -2225,18 +2225,23 @@ wxSizer *CreateStdButtonSizer(wxWindow *parent, long buttons, wxWindow *extra)
|
|||||||
// Add any buttons that need to cuddle up to the right hand cluster
|
// Add any buttons that need to cuddle up to the right hand cluster
|
||||||
if( buttons & eDebugButton )
|
if( buttons & eDebugButton )
|
||||||
{
|
{
|
||||||
|
size_t lastLastSpacer = 0;
|
||||||
size_t lastSpacer = 0;
|
size_t lastSpacer = 0;
|
||||||
wxSizerItemList & list = bs->GetChildren();
|
wxSizerItemList & list = bs->GetChildren();
|
||||||
for ( size_t i = 0, cnt = list.GetCount(); i < cnt; i++ )
|
for( size_t i = 0, cnt = list.GetCount(); i < cnt; i++ )
|
||||||
{
|
{
|
||||||
if ( list[i]->IsSpacer() )
|
if( list[i]->IsSpacer() )
|
||||||
{
|
{
|
||||||
lastSpacer = i;
|
lastSpacer = i;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
lastLastSpacer = lastSpacer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
b = new wxButton( parent, eDebugID, _("Debu&g") );
|
b = new wxButton( parent, eDebugID, _("Debu&g") );
|
||||||
bs->Insert( lastSpacer + 1, b, 0, wxALIGN_CENTER | wxLEFT | wxRIGHT, margin );
|
bs->Insert( lastLastSpacer + 1, b, 0, wxALIGN_CENTER | wxLEFT | wxRIGHT, margin );
|
||||||
}
|
}
|
||||||
|
|
||||||
wxSizer * s;
|
wxSizer * s;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user