]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/listbox.cpp
A little clarification
[wxWidgets.git] / src / gtk / listbox.cpp
index e9540a1e4465624029bea7b50555c593117fc7fe..a8a680a940158541278211db23c3f20c6b28e6e4 100644 (file)
@@ -8,10 +8,13 @@
 /////////////////////////////////////////////////////////////////////////////
 
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "listbox.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/defs.h"
 
 #if wxUSE_LISTBOX
@@ -396,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 );