1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 14:35:32 +01:00

static MenuManager::Get()...

... not member functions of AudacityProject
This commit is contained in:
Paul Licameli
2019-05-01 13:20:52 -04:00
parent 2f0a76ed10
commit 0923bc19a9
16 changed files with 72 additions and 60 deletions

View File

@@ -180,7 +180,7 @@ void DoReloadPreferences( AudacityProject &project )
for (size_t i = 0; i < gAudacityProjects.size(); i++) {
AudacityProject *p = gAudacityProjects[i].get();
GetMenuManager(*p).RebuildMenuBar(*p);
MenuManager::Get(*p).RebuildMenuBar(*p);
// TODO: The comment below suggests this workaround is obsolete.
#if defined(__WXGTK__)
// Workaround for:
@@ -1018,7 +1018,7 @@ void OnPreferences(const CommandContext &context)
for (size_t i = 0; i < gAudacityProjects.size(); i++) {
AudacityProject *p = gAudacityProjects[i].get();
GetMenuManager(*p).RebuildMenuBar(*p);
MenuManager::Get(*p).RebuildMenuBar(*p);
// TODO: The comment below suggests this workaround is obsolete.
#if defined(__WXGTK__)
// Workaround for: