#if wxUSE_CONTROLS
-#include "wx/log.h"
#include "wx/control.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/log.h"
+ #include "wx/settings.h"
+#endif
+
#include "wx/fontutil.h"
-#include "wx/settings.h"
#include "wx/gtk1/private.h"
// ============================================================================
wxControl::wxControl()
{
- m_needParent = TRUE;
+ m_needParent = true;
}
bool wxControl::Create( wxWindow *parent,
gtk_widget_ensure_style(m_widget);
ApplyWidgetStyle();
- SetInitialBestSize(size);
+ SetInitialSize(size);
}
// ----------------------------------------------------------------------------
const wxString labelGTK = GTKRemoveMnemonics(label);
- gtk_frame_set_label(w, labelGTK.empty() ? (char *)NULL
+ gtk_frame_set_label(w, labelGTK.empty() ? (const char *)NULL
: wxGTK_CONV(labelGTK));
}
{
wxChar ch = label[i];
- if ( ch == _T('&') )
+ if ( ch == wxT('&') )
{
if ( i == len - 1 )
{
}
ch = label[++i]; // skip '&' itself
- if ( ch == _T('&') )
+ if ( ch == wxT('&') )
{
// special case: "&&" is not a mnemonic at all but just an
// escaped "&"
}
#endif // wxUSE_CONTROLS
-