X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d752a3c394b830405753476e508898988d502bfd..70050c82fe8114fc5d86591035e71751bac21cc6:/src/gtk/listbox.cpp diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 56e8db0c7d..86679dd655 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -374,7 +374,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id, gtk_widget_show( GTK_WIDGET(m_list) ); - SetSizeOrDefault( size ); + SetBestSize( size ); if ( style & wxLB_SORT ) { @@ -682,7 +682,7 @@ void wxListBox::Delete( int n ) wxNode *node = m_clientList.Nth( n ); if ( node ) { - if ( m_clientDataItemsType == ClientData_Object ) + if ( m_clientDataItemsType == wxClientData_Object ) { wxClientData *cd = (wxClientData*)node->Data(); delete cd;