mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-14 07:04:41 +01:00
Replace more Connect with Bind; needed redeclaration of custom events
This commit is contained in:
@@ -16,7 +16,7 @@ Paul Licameli
|
||||
|
||||
class wxArrayString;
|
||||
|
||||
DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_LANGUAGE_CHANGE, -1);
|
||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API, EVT_LANGUAGE_CHANGE, wxCommandEvent);
|
||||
|
||||
/*
|
||||
This class can maintain a static table containing user visible strings that updates
|
||||
@@ -37,9 +37,8 @@ public:
|
||||
TranslatableArray()
|
||||
{
|
||||
if (wxTheApp)
|
||||
wxTheApp->Connect(EVT_LANGUAGE_CHANGE,
|
||||
wxCommandEventHandler(TranslatableArray::Invalidate),
|
||||
NULL,
|
||||
wxTheApp->Bind(EVT_LANGUAGE_CHANGE,
|
||||
&TranslatableArray::Invalidate,
|
||||
this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user