]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobut.cpp
fixing 10.5 only compiles
[wxWidgets.git] / src / gtk / radiobut.cpp
index 47b18d856000d68be3dfca4342dd4082f95a0c99..c4ac7d11758f53ea870ad05d1b4ddb4aa339c71d 100644 (file)
@@ -41,7 +41,7 @@ void gtk_radiobutton_clicked_callback( GtkToggleButton *button, wxRadioButton *r
     wxCommandEvent event( wxEVT_COMMAND_RADIOBUTTON_SELECTED, rb->GetId());
     event.SetInt( rb->GetValue() );
     event.SetEventObject( rb );
-    rb->GetEventHandler()->ProcessEvent( event );
+    rb->HandleWindowEvent( event );
 }
 }
 
@@ -60,15 +60,13 @@ bool wxRadioButton::Create( wxWindow *parent,
                             const wxValidator& validator,
                             const wxString& name )
 {
-    m_needParent = TRUE;
-
-    m_blockEvent = FALSE;
+    m_blockEvent = false;
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
         wxFAIL_MSG( wxT("wxRadioButton creation failed") );
-        return FALSE;
+        return false;
     }
 
     GSList* radioButtonGroup = NULL;