wxButton::~wxButton()
{
- if (m_clientData) delete m_clientData;
}
bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label,
const wxPoint &pos, const wxSize &size,
long style, const wxValidator& validator, const wxString &name )
{
- m_clientData = (wxClientData*) NULL;
m_needParent = TRUE;
m_acceptsFocus = TRUE;
if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, validator, name ))
{
- wxFAIL_MSG( T("wxButton creation failed") );
+ wxFAIL_MSG( wxT("wxButton creation failed") );
return FALSE;
}
return TRUE;
}
-void wxButton::SetDefault(void)
+void wxButton::SetDefault()
{
GTK_WIDGET_SET_FLAGS( m_widget, GTK_CAN_DEFAULT );
gtk_widget_grab_default( m_widget );
void wxButton::SetLabel( const wxString &label )
{
- wxCHECK_RET( m_widget != NULL, T("invalid button") );
+ wxCHECK_RET( m_widget != NULL, wxT("invalid button") );
wxControl::SetLabel( label );