mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
Changes to a number of dialogs so that the nvda screen reader can read their titles. The accessibility name of the dialog is set to the title of the dialog.
This commit is contained in:
@@ -92,6 +92,7 @@ int wxTreebookExt::ChangeSelection(size_t n) {
|
||||
int i = wxTreebook::ChangeSelection(n);
|
||||
wxString Temp = GetPageText( n );
|
||||
((wxDialog*)GetParent())->SetTitle( Temp );
|
||||
((wxDialog*)GetParent())->SetName( Temp );
|
||||
return i;
|
||||
};
|
||||
|
||||
@@ -100,6 +101,7 @@ int wxTreebookExt::SetSelection(size_t n)
|
||||
int i = wxTreebook::SetSelection(n);
|
||||
wxString Temp = wxString(_("Preferences: ")) + GetPageText( n );
|
||||
((wxDialog*)GetParent())->SetTitle( Temp );
|
||||
((wxDialog*)GetParent())->SetName( Temp );
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user