X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7520f3da332d64a676b6f7d27a56004fabf2db36..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/motif/checkbox.cpp diff --git a/src/motif/checkbox.cpp b/src/motif/checkbox.cpp index 948b2c673a..84dfd520a8 100644 --- a/src/motif/checkbox.cpp +++ b/src/motif/checkbox.cpp @@ -17,8 +17,12 @@ #endif #include "wx/checkbox.h" + +#ifndef WX_PRECOMP + #include "wx/utils.h" +#endif + #include "wx/tglbtn.h" -#include "wx/utils.h" #ifdef __VMS__ #pragma message disable nosimpint @@ -59,8 +63,7 @@ bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label, name ) ) return false; - wxString label1(wxStripMenuCodes(label)); - wxXmString text( label1 ); + wxXmString text( GetLabelText(label) ); Widget parentWidget = (Widget) parent->GetClientWidget(); @@ -152,13 +155,13 @@ void wxCheckBox::ChangeBackgroundColour() NULL); wxColour colour = *wxBLACK; - int selectPixel = colour.AllocColour(XtDisplay((Widget)m_mainWidget)); + WXPixel selectPixel = colour.AllocColour(XtDisplay((Widget)m_mainWidget)); // Better to have the checkbox selection in black, or it's // hard to determine what state it is in. XtVaSetValues ((Widget) m_mainWidget, XmNselectColor, selectPixel, - NULL); + NULL); } void wxCheckBox::DoSet3StateValue(wxCheckBoxState state)