X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a90d7985c784b47ec2bc5b737b890b370dc9c78..60435227b10297510316a88f67758fb6b6d93c10:/src/motif/combobox.cpp?ds=sidebyside diff --git a/src/motif/combobox.cpp b/src/motif/combobox.cpp index 83dac29f7f..cf85010c4c 100644 --- a/src/motif/combobox.cpp +++ b/src/motif/combobox.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 17/09/98 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -38,8 +37,6 @@ void wxComboBoxCallback (Widget w, XtPointer clientData, XmComboBoxSelectionCallbackStruct * cbs); -IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl) - bool wxComboBox::Create(wxWindow *parent, wxWindowID id, const wxString& value, const wxPoint& pos, @@ -234,7 +231,7 @@ void wxComboBoxCallback (Widget WXUNUSED(w), XtPointer clientData, case XmCR_SINGLE_SELECT: case XmCR_BROWSE_SELECT: { - wxCommandEvent event (wxEVT_COMMAND_COMBOBOX_SELECTED, + wxCommandEvent event (wxEVT_COMBOBOX, item->GetId()); event.SetInt(cbs->index - 1); event.SetString( item->GetString ( event.GetInt() ) ); @@ -249,7 +246,7 @@ void wxComboBoxCallback (Widget WXUNUSED(w), XtPointer clientData, } case XmCR_VALUE_CHANGED: { - wxCommandEvent event (wxEVT_COMMAND_TEXT_UPDATED, item->GetId()); + wxCommandEvent event (wxEVT_TEXT, item->GetId()); event.SetInt(-1); event.SetString( item->GetValue() ); event.SetExtraLong(true);