X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b292e2f512fa9b25e2d2928604ab884b00e6c6bf..c127177f8dc31dbe99764852b8dbcc047d3ad826:/src/gtk/control.cpp diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index 4b04d0bb37..69e7a9a0b2 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -13,6 +13,8 @@ #include "wx/control.h" +#include "gtk/gtkfeatures.h" + //----------------------------------------------------------------------------- // wxControl //----------------------------------------------------------------------------- @@ -37,14 +39,14 @@ void wxControl::Command( wxCommandEvent &WXUNUSED(event) ) void wxControl::SetLabel( const wxString &label ) { - m_label = ""; - for ( const char *pc = label; *pc != '\0'; pc++ ) + m_label = _T(""); + for ( const wxChar *pc = label; *pc != _T('\0'); pc++ ) { - if ( *pc == '&' ) + if ( *pc == _T('&') ) { pc++; // skip it #if 0 // it would be unused anyhow for now - kbd interface not done yet - if ( *pc != '&' ) m_chAccel = *pc; + if ( *pc != _T('&') ) m_chAccel = *pc; #endif } m_label << *pc;