]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/choice.cpp
Treat G_IO_HUP as read, not error, event because EOF is not exceptional.
[wxWidgets.git] / src / gtk1 / choice.cpp
index 5c29d0930ccbb1897662daeb460eccd84da23e5b..bf990f2b819bdbe2786245005907dcb0eade60cf 100644 (file)
@@ -66,7 +66,7 @@ static void gtk_choice_clicked_callback( GtkWidget *WXUNUSED(widget), wxChoice *
 
     choice->m_selection_hack = selection;
 
 
     choice->m_selection_hack = selection;
 
-    wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, choice->GetId() );
+    wxCommandEvent event(wxEVT_CHOICE, choice->GetId() );
     int n = choice->GetSelection();
 
     event.SetInt( n );
     int n = choice->GetSelection();
 
     event.SetInt( n );
@@ -86,8 +86,6 @@ static void gtk_choice_clicked_callback( GtkWidget *WXUNUSED(widget), wxChoice *
 // wxChoice
 //-----------------------------------------------------------------------------
 
 // wxChoice
 //-----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
-
 wxChoice::wxChoice()
 {
     m_strings = NULL;
 wxChoice::wxChoice()
 {
     m_strings = NULL;