]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/choice_osx.cpp
Use the best instead of current page size in OS X preferences dialog.
[wxWidgets.git] / src / osx / choice_osx.cpp
index 2bf2c102535b66afc4f913b092bd00ab78717d9d..7dd17476cf461760f9f45b5f7b4eafccb007dc3f 100644 (file)
@@ -236,23 +236,7 @@ void * wxChoice::DoGetItemClientData(unsigned int n) const
 
 bool wxChoice::OSXHandleClicked( double WXUNUSED(timestampsec) )
 {
-    wxCommandEvent event( wxEVT_COMMAND_CHOICE_SELECTED, m_windowId );
-
-    // actually n should be made sure by the os to be a valid selection, but ...
-    int n = GetSelection();
-    if ( n > -1 )
-    {
-        event.SetInt( n );
-        event.SetString( GetStringSelection() );
-        event.SetEventObject( this );
-
-        if ( HasClientObjectData() )
-            event.SetClientObject( GetClientObject( n ) );
-        else if ( HasClientUntypedData() )
-            event.SetClientData( GetClientData( n ) );
-
-        ProcessCommand( event );
-    }
+    SendSelectionChangedEvent(wxEVT_CHOICE);
 
     return true ;
 }