]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobut.cpp
Add virtual ~wxAnyScrollHelperBase() to fix compiler warning.
[wxWidgets.git] / src / motif / radiobut.cpp
index 5c38eaf30d67c00913d61d272037ebc4b066c01b..aa1dbd7b5ea2aebccd74ebd900d7d23267028a26 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Julian Smart
 // Modified by:
 // Created:     17/09/98
-// RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -32,8 +31,6 @@
 void wxRadioButtonCallback (Widget w, XtPointer clientData,
                             XmToggleButtonCallbackStruct * cbs);
 
-IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
-
 wxRadioButton::wxRadioButton()
 {
 }
@@ -91,7 +88,7 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
     else
     {
         /* search backward for last group start */
-        wxRadioButton *chief = (wxRadioButton*) NULL;
+        wxRadioButton *chief = NULL;
         wxWindowList::compatibility_iterator node = parent->GetChildren().GetLast();
         while (node)
         {
@@ -161,13 +158,13 @@ void wxRadioButtonCallback (Widget WXUNUSED(w), XtPointer clientData,
 
     if ( old )
     {
-        wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED,
+        wxCommandEvent event(wxEVT_RADIOBUTTON,
                              old->GetId() );
         event.SetEventObject(old);
         event.SetInt( false );
         old->ProcessCommand(event);
     }
-    wxCommandEvent event2(wxEVT_COMMAND_RADIOBUTTON_SELECTED, item->GetId() );
+    wxCommandEvent event2(wxEVT_RADIOBUTTON, item->GetId() );
     event2.SetEventObject(item);
     event2.SetInt( true );
     item->ProcessCommand(event2);