1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

Fix more accessibility names after the move to wx 3.1.1

This is a follow up to commit f9ee3cd.
This commit is contained in:
David Bailes
2018-04-10 13:43:50 +01:00
parent 1c751fd863
commit 526606fc29
6 changed files with 60 additions and 4 deletions

View File

@@ -94,6 +94,10 @@
#include "../../xml/XMLFileReader.h"
#include "../../xml/XMLWriter.h"
#if wxUSE_ACCESSIBILITY
#include "../../widgets/WindowAccessible.h"
#endif
#include "audacity/ConfigInterface.h"
#include "VSTEffect.h"
@@ -2932,6 +2936,10 @@ void VSTEffect::BuildPlain()
wxDefaultPosition,
wxSize(200, -1));
gridSizer->Add(mSliders[i], 0, wxALIGN_CENTER_VERTICAL | wxEXPAND | wxALL, 5);
#if wxUSE_ACCESSIBILITY
// so that name can be set on a standard control
mSliders[i]->SetAccessible(safenew WindowAccessible(mSliders[i]));
#endif
mDisplays[i] = safenew wxStaticText(scroller,
wxID_ANY,