Use Bind() instead of Connect() in wxWidgets code
Use more modern function which allows to avoid wxXXXEventHandler() macros use. No real changes.
This commit is contained in:
@@ -74,9 +74,7 @@ bool wxFontPickerCtrl::Create( wxWindow *parent, wxWindowID id,
|
||||
// complete sizer creation
|
||||
wxPickerBase::PostCreation();
|
||||
|
||||
m_picker->Connect(wxEVT_FONTPICKER_CHANGED,
|
||||
wxFontPickerEventHandler(wxFontPickerCtrl::OnFontChange),
|
||||
NULL, this);
|
||||
m_picker->Bind(wxEVT_FONTPICKER_CHANGED, &wxFontPickerCtrl::OnFontChange, this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user