X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fe5be6e01e97288ddb23834d10673431bb4a575..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/motif/stattext.cpp diff --git a/src/motif/stattext.cpp b/src/motif/stattext.cpp index 79d3ea330d..e109caae2d 100644 --- a/src/motif/stattext.cpp +++ b/src/motif/stattext.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: stattext.cpp +// Name: src/motif/stattext.cpp // Purpose: wxStaticText // Author: Julian Smart // Modified by: @@ -16,8 +16,6 @@ #define XtDisplay XTDISPLAY #endif -#include "wx/defs.h" - #if wxUSE_STATTEXT #include "wx/stattext.h" @@ -49,7 +47,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, Widget borderWidget = (Widget) wxCreateBorderWidget( (WXWidget)parentWidget, style ); - wxXmString text( wxStripMenuCodes( label ) ); + wxXmString text( GetLabelText( label ) ); m_labelWidget = XtVaCreateManagedWidget (wxConstCast(name.c_str(), char), @@ -75,7 +73,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, void wxStaticText::SetLabel(const wxString& label) { - wxXmString label_str(wxStripMenuCodes(label)); + wxXmString label_str(GetLabelText(label)); // This variable means we don't need so many casts later. Widget widget = (Widget) m_labelWidget;