]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/choicdlg.cpp
link fix for no sockets compilation
[wxWidgets.git] / src / gtk1 / choicdlg.cpp
index fe1352d0a500cd728149ba9908881d95813d8aa8..806b21e46da86f12e783e912a9f43380a9d7ac69 100644 (file)
@@ -248,9 +248,9 @@ bool wxSingleChoiceDialog::Create( wxWindow *WXUNUSED(parent), const wxString& m
     
     int y = message_size.y + 15;
     
-    int listbox_height = 100;
+    int listbox_height = 150;
     
-    wxListBox *listBox = new wxListBox( this, wxID_LISTBOX, wxPoint(10, y), wxSize(240, listbox_height), 
+    wxListBox *listBox = new wxListBox( this, wxID_LISTBOX, wxPoint(10, y), wxSize(360, listbox_height), 
                                         n, choices, wxLB_ALWAYS_SB );
     listBox->SetSelection( m_selection );
     if (clientData)
@@ -327,7 +327,7 @@ void wxSingleChoiceDialog::OnOK(wxCommandEvent& WXUNUSED(event))
     {
         m_selection = listBox->GetSelection();
         m_stringSelection = listBox->GetStringSelection();
-        m_clientData = (char*)listBox->GetClientData(m_selection);
+        m_clientData = listBox->GetClientData(m_selection);
     }
 
     EndModal(wxID_OK);
@@ -340,7 +340,7 @@ void wxSingleChoiceDialog::OnListBoxDClick(wxCommandEvent& WXUNUSED(event))
     {
         m_selection = listBox->GetSelection();
         m_stringSelection = listBox->GetStringSelection();
-        m_clientData = (char*)listBox->GetClientData(m_selection);
+        m_clientData = listBox->GetClientData(m_selection);
     }
 
     EndModal(wxID_OK);