mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 16:43:33 +02:00
Revert "Bug1848: Mac VoiceOver should read names of choice controls..."
This reverts commitd2c112600d
. On Windows, it is intentional that SetAccessible is not called for wxChoice in ShuttleGui. See the commit message off9ee3cd
for background. Changing this during code freeze and close to creating release candidates would have the danger of introducing bugs. Fixing this bug needs further discussion. Hopefully the Mac accessibility code can be changed to bring it into line with the changes in the wxWidets accessibility code when we moved to 3.1.1
This commit is contained in:
@@ -401,10 +401,6 @@ wxChoice * ShuttleGuiBase::AddChoice( const wxString &Prompt,
|
||||
Style( 0 ) );
|
||||
|
||||
pChoice->SetSizeHints( 180,-1);// Use -1 for 'default size' - Platform specific.
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
// so that name can be set on a standard control
|
||||
mpWind->SetAccessible(safenew WindowAccessible(mpWind));
|
||||
#endif
|
||||
pChoice->SetName(wxStripMenuCodes(Prompt));
|
||||
if ( Selected >= 0 && Selected < choices.size() )
|
||||
pChoice->SetSelection( Selected );
|
||||
|
Reference in New Issue
Block a user