// Author: John Norris, minor changes by Axel Schlueter
// Modified by:
// Created: 08.02.01
-// RCS-ID: $Id$
// Copyright: (c) 2000 Johnny C. Norris II
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
return;
// Generate a wx event.
- wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, cb->GetId());
+ wxCommandEvent event(wxEVT_TOGGLEBUTTON, cb->GetId());
event.SetInt(cb->GetValue());
event.SetEventObject(cb);
cb->HandleWindowEvent(event);
}
}
-wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent );
+wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent );
// ------------------------------------------------------------------------
// wxBitmapToggleButton
wxVisualAttributes
wxToggleButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
{
- return GetDefaultAttributesFromGTKWidget(gtk_toggle_button_new);
+ return GetDefaultAttributesFromGTKWidget(gtk_toggle_button_new());
}
#endif // wxUSE_TOGGLEBTN