// Name: src/gtk1/control.cpp
// Purpose: wxControl implementation for wxGTK
// Author: Robert Roebling
-// Id: $Id$
// Copyright: (c) 1998 Robert Roebling, Julian Smart and Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
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 "&"