X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e04b7e8e715c8ae3d42ed462a7302225f28bf35d..ed4eede6c2c16cdb422a39c1b3655956b8f51a1c:/src/motif/button.cpp diff --git a/src/motif/button.cpp b/src/motif/button.cpp index a1afbd74be..93189fd2a7 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -33,6 +33,7 @@ #pragma message enable nosimpint #endif +#include "wx/stockitem.h" #include "wx/motif/private.h" #include "wx/sysopt.h" @@ -45,12 +46,16 @@ IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl) // Button -bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label, +bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& lbl, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator, const wxString& name) { + wxString label(lbl); + if (label.empty() && wxIsStockID(id)) + label = wxGetStockLabel(id); + if( !CreateControl( parent, id, pos, size, style, validator, name ) ) return false;