]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/choiccmn.cpp
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[wxWidgets.git] / src / common / choiccmn.cpp
index 57ec42af309c15b6fd71bd8b184530aa2e2c6b11..50c633894e9a6f670aa8ff959d791ad77e1fac7e 100644 (file)
 // implementation
 // ============================================================================
 
-// ----------------------------------------------------------------------------
-// selection
-// ----------------------------------------------------------------------------
-
-bool wxChoiceBase::SetStringSelection(const wxString& s)
+wxChoiceBase::~wxChoiceBase()
 {
-    int sel = FindString(s);
-    wxCHECK_MSG( sel != -1, false,
-                 wxT("invalid string in wxChoice::SetStringSelection") );
-
-    Select(sel);
-
-    return true;
+    // this destructor is required for Darwin
 }
 
 // ----------------------------------------------------------------------------
@@ -59,7 +49,7 @@ bool wxChoiceBase::SetStringSelection(const wxString& s)
 
 void wxChoiceBase::Command(wxCommandEvent& event)
 {
-    SetSelection(event.m_commandInt);
+    SetSelection(event.GetInt());
     (void)ProcessEvent(event);
 }