X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94aff5ff86189e39b7a95fc62e886374c060a2cf..refs/heads/master:/src/motif/button.cpp diff --git a/src/motif/button.cpp b/src/motif/button.cpp index 99324c3f9c..5349b75337 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 17/09/98 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -12,10 +11,6 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#ifdef __VMS -#define XtDisplay XTDISPLAY -#endif - #include "wx/button.h" #ifdef __VMS__ @@ -38,8 +33,6 @@ void wxButtonCallback (Widget w, XtPointer clientData, XtPointer ptr); -IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl) - #define MIN_WIDTH 78 #define MIN_LARGE_HEIGHT 30 @@ -248,7 +241,7 @@ void wxButtonCallback (Widget w, XtPointer clientData, XtPointer WXUNUSED(ptr)) return; wxButton *item = (wxButton *) clientData; - wxCommandEvent event (wxEVT_COMMAND_BUTTON_CLICKED, item->GetId()); + wxCommandEvent event (wxEVT_BUTTON, item->GetId()); event.SetEventObject(item); item->ProcessCommand (event); }