mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 12:12:23 +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:
@@ -85,6 +85,10 @@ and in the spectrogram spectral selection.
|
||||
#include "./widgets/HelpSystem.h"
|
||||
#include "widgets/ErrorDialog.h"
|
||||
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
#include "widgets/WindowAccessible.h"
|
||||
#endif
|
||||
|
||||
DEFINE_EVENT_TYPE(EVT_FREQWINDOW_RECALC);
|
||||
|
||||
enum {
|
||||
@@ -309,6 +313,10 @@ FreqWindow::FreqWindow(wxWindow * parent, wxWindowID id,
|
||||
{
|
||||
mPanScroller = safenew wxScrollBar(this, FreqPanScrollerID,
|
||||
wxDefaultPosition, wxDefaultSize, wxSB_VERTICAL);
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
// so that name can be set on a standard control
|
||||
mPanScroller->SetAccessible(safenew WindowAccessible(mPanScroller));
|
||||
#endif
|
||||
mPanScroller->SetName(_("Scroll"));
|
||||
S.Prop(1);
|
||||
S.AddWindow(mPanScroller, wxALIGN_LEFT | wxTOP);
|
||||
@@ -326,6 +334,10 @@ FreqWindow::FreqWindow(wxWindow * parent, wxWindowID id,
|
||||
wxDefaultPosition, wxDefaultSize, wxSL_VERTICAL);
|
||||
S.Prop(1);
|
||||
S.AddWindow(mZoomSlider, wxALIGN_CENTER_HORIZONTAL);
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
// so that name can be set on a standard control
|
||||
mZoomSlider->SetAccessible(safenew WindowAccessible(mZoomSlider));
|
||||
#endif
|
||||
mZoomSlider->SetName(_("Zoom"));
|
||||
|
||||
S.AddSpace(5);
|
||||
|
||||
Reference in New Issue
Block a user