X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94aff5ff86189e39b7a95fc62e886374c060a2cf..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/motif/button.cpp diff --git a/src/motif/button.cpp b/src/motif/button.cpp index 99324c3f9c..14418ab50a 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -12,10 +12,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 +34,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 +242,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); }