]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/checkbox.cpp
Correctly recognize when wglChoosePixelFormatARB() fails.
[wxWidgets.git] / src / motif / checkbox.cpp
index e6fc7d7314a93455d35a7d1e4a1c812e9451a97e..1a79bf75ec76879fe5d44f4dfa1a62156d119059 100644 (file)
@@ -144,7 +144,7 @@ void wxCheckBox::ChangeBackgroundColour()
         return;
 
     wxComputeColours (XtDisplay((Widget) m_mainWidget), & m_backgroundColour,
-        (wxColour*) NULL);
+        NULL);
 
     XtVaSetValues ((Widget) m_mainWidget,
         XmNbackground, g_itemColors[wxBACK_INDEX].pixel,
@@ -218,7 +218,7 @@ wxCheckBoxState wxCheckBox::DoGet3StateValue() const
 
 #if wxUSE_TOGGLEBTN
 
-DEFINE_EVENT_TYPE(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)
+wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent );
 IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxControl)
 
 bool wxToggleButton::Create( wxWindow* parent, wxWindowID id,