X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e19598f7fb35ba2aeed3d672d4c7c5cfed0cbf6..3678169caab0f713415414dce013a638305f3cce:/src/osx/listbox_osx.cpp?ds=sidebyside diff --git a/src/osx/listbox_osx.cpp b/src/osx/listbox_osx.cpp index a6e8b51418..63a7bc9e4b 100644 --- a/src/osx/listbox_osx.cpp +++ b/src/osx/listbox_osx.cpp @@ -393,8 +393,8 @@ void wxListBox::SetString(unsigned int n, const wxString& s) void wxListBox::HandleLineEvent( unsigned int n, bool doubleClick ) { - wxCommandEvent event( doubleClick ? wxEVT_COMMAND_LISTBOX_DOUBLECLICKED : - wxEVT_COMMAND_LISTBOX_SELECTED, GetId() ); + wxCommandEvent event( doubleClick ? wxEVT_LISTBOX_DCLICK : + wxEVT_LISTBOX, GetId() ); event.SetEventObject( this ); if ( HasClientObjectData() ) event.SetClientObject( GetClientObject(n) );