mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-26 09:28:07 +02:00
Fix mac build
Changed the Windows constant CHILDID_SELF to the equivalent wx constant wxACC_SELF, which I should have used in the first place.
This commit is contained in:
parent
59d1ca46df
commit
49eb7ddb61
@ -653,14 +653,14 @@ wxAccStatus TrackPanelAx::Navigate(wxNavDir navDir, int fromId, int* toId, wxAcc
|
|||||||
|
|
||||||
switch (navDir) {
|
switch (navDir) {
|
||||||
case wxNAVDIR_FIRSTCHILD:
|
case wxNAVDIR_FIRSTCHILD:
|
||||||
if (fromId == CHILDID_SELF && childCount > 0 )
|
if (fromId == wxACC_SELF && childCount > 0 )
|
||||||
*toId = 1;
|
*toId = 1;
|
||||||
else
|
else
|
||||||
return wxACC_FALSE;
|
return wxACC_FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case wxNAVDIR_LASTCHILD:
|
case wxNAVDIR_LASTCHILD:
|
||||||
if (fromId == CHILDID_SELF && childCount > 0 )
|
if (fromId == wxACC_SELF && childCount > 0 )
|
||||||
*toId = childCount;
|
*toId = childCount;
|
||||||
else
|
else
|
||||||
return wxACC_FALSE;
|
return wxACC_FALSE;
|
||||||
@ -668,7 +668,7 @@ wxAccStatus TrackPanelAx::Navigate(wxNavDir navDir, int fromId, int* toId, wxAcc
|
|||||||
|
|
||||||
case wxNAVDIR_NEXT:
|
case wxNAVDIR_NEXT:
|
||||||
case wxNAVDIR_DOWN:
|
case wxNAVDIR_DOWN:
|
||||||
if (fromId != CHILDID_SELF) {
|
if (fromId != wxACC_SELF) {
|
||||||
*toId = fromId + 1;
|
*toId = fromId + 1;
|
||||||
if (*toId > childCount)
|
if (*toId > childCount)
|
||||||
return wxACC_FALSE;
|
return wxACC_FALSE;
|
||||||
@ -679,7 +679,7 @@ wxAccStatus TrackPanelAx::Navigate(wxNavDir navDir, int fromId, int* toId, wxAcc
|
|||||||
|
|
||||||
case wxNAVDIR_PREVIOUS:
|
case wxNAVDIR_PREVIOUS:
|
||||||
case wxNAVDIR_UP:
|
case wxNAVDIR_UP:
|
||||||
if (fromId != CHILDID_SELF) {
|
if (fromId != wxACC_SELF) {
|
||||||
*toId = fromId - 1;
|
*toId = fromId - 1;
|
||||||
if (*toId < 1)
|
if (*toId < 1)
|
||||||
return wxACC_FALSE;
|
return wxACC_FALSE;
|
||||||
@ -690,7 +690,7 @@ wxAccStatus TrackPanelAx::Navigate(wxNavDir navDir, int fromId, int* toId, wxAcc
|
|||||||
|
|
||||||
case wxNAVDIR_LEFT:
|
case wxNAVDIR_LEFT:
|
||||||
case wxNAVDIR_RIGHT:
|
case wxNAVDIR_RIGHT:
|
||||||
if (fromId != CHILDID_SELF)
|
if (fromId != wxACC_SELF)
|
||||||
return wxACC_FALSE;
|
return wxACC_FALSE;
|
||||||
else
|
else
|
||||||
return wxACC_NOT_IMPLEMENTED;
|
return wxACC_NOT_IMPLEMENTED;
|
||||||
@ -708,7 +708,7 @@ wxAccStatus TrackPanelAx::Select(int childId, wxAccSelectionFlags selectFlags)
|
|||||||
if (selectFlags != wxACC_SEL_TAKEFOCUS)
|
if (selectFlags != wxACC_SEL_TAKEFOCUS)
|
||||||
return wxACC_NOT_IMPLEMENTED;
|
return wxACC_NOT_IMPLEMENTED;
|
||||||
|
|
||||||
if (childId != CHILDID_SELF) {
|
if (childId != wxACC_SELF) {
|
||||||
int childCount;
|
int childCount;
|
||||||
GetChildCount( &childCount );
|
GetChildCount( &childCount );
|
||||||
if (childId > childCount)
|
if (childId > childCount)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user