X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/455f7c8205e5dc29d99026b158ae0a394dccc839..76e7cfab8fdb0c7862fd07e427af54181717fc62:/src/motif/listbox.cpp?ds=inline diff --git a/src/motif/listbox.cpp b/src/motif/listbox.cpp index 4d59337023..c4d601a800 100644 --- a/src/motif/listbox.cpp +++ b/src/motif/listbox.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 17/09/98 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -33,8 +32,6 @@ #endif #include "wx/motif/private.h" -IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems) - static void wxListBoxCallback(Widget w, XtPointer clientData, XmListCallbackStruct * cbs); @@ -103,7 +100,7 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id, ( m_windowStyle & wxLB_EXTENDED ) ? XmEXTENDED_SELECT : XmBROWSE_SELECT ); ++count; - if( m_font.Ok() ) + if( m_font.IsOk() ) { XtSetArg( args[count], (String)wxFont::GetFontTag(), m_font.GetFontTypeC(dpy) ); @@ -454,9 +451,9 @@ void wxListBoxCallback (Widget WXUNUSED(w), XtPointer clientData, wxEventType evtType; if( cbs->reason == XmCR_DEFAULT_ACTION ) - evtType = wxEVT_COMMAND_LISTBOX_DOUBLECLICKED; + evtType = wxEVT_LISTBOX_DCLICK; else - evtType = wxEVT_COMMAND_LISTBOX_SELECTED; + evtType = wxEVT_LISTBOX; int n = cbs->item_position - 1; wxCommandEvent event (evtType, item->GetId());