X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fdir_picker_ctrl.cc;h=2330e584a5ea90748ac682a8367cdb1041bdd055;hp=18d3ac6f42ae89c708acc847978538ed25b7861c;hb=ad5c8849fc3ef5aad88201f28db5474a60db4436;hpb=f113b2aaca7a65f7b37e12a7d9f3f99e2d834e81 diff --git a/src/wx/dir_picker_ctrl.cc b/src/wx/dir_picker_ctrl.cc index 18d3ac6f4..2330e584a 100644 --- a/src/wx/dir_picker_ctrl.cc +++ b/src/wx/dir_picker_ctrl.cc @@ -40,7 +40,7 @@ DirPickerCtrl::DirPickerCtrl (wxWindow* parent) SetSizer (_sizer); - _browse->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&DirPickerCtrl::browse_clicked, this)); + _browse->Bind (wxEVT_BUTTON, boost::bind (&DirPickerCtrl::browse_clicked, this)); } void @@ -54,7 +54,7 @@ DirPickerCtrl::SetPath (wxString p) _folder->SetLabel (std_to_wx (filesystem::path (wx_to_std (_path)).leaf().string())); } - wxCommandEvent ev (wxEVT_COMMAND_DIRPICKER_CHANGED, wxID_ANY); + wxCommandEvent ev (wxEVT_DIRPICKER_CHANGED, wxID_ANY); GetEventHandler()->ProcessEvent (ev); _sizer->Layout ();