]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/listbox.cpp
Applied [ 821234 ] Fix: erroneous assertion failed wxListBox::SetSelection
[wxWidgets.git] / src / gtk1 / listbox.cpp
index 56f3a233833e029fcc4d451dfadb32e08ca2d2a1..a8a680a940158541278211db23c3f20c6b28e6e4 100644 (file)
@@ -399,10 +399,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     m_parent->DoAddChild( this );
 
     PostCreation();
-
-    SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOX ) );
-    SetForegroundColour( parent->GetForegroundColour() );
-    SetFont( parent->GetFont() );
+    InheritAttributes();
 
     Show( TRUE );