]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/radiobut.cpp
don't use wxFileConfig to parse kdeglobals, it's not meant for such use. Fixes bug...
[wxWidgets.git] / src / gtk1 / radiobut.cpp
index e79978e8b7979b865bde961b6aff74064d1d4077..c8c6c53ecae61a8df1e1a9a9f45848d3ebecef3b 100644 (file)
@@ -129,8 +129,7 @@ bool wxRadioButton::Create( wxWindow *parent,
     m_parent->DoAddChild( this );
   
     PostCreation();
-
-    SetFont( parent->GetFont() );
+    InheritAttributes();
 
     wxSize size_best( DoGetBestSize() );
     wxSize new_size( size );
@@ -141,9 +140,6 @@ bool wxRadioButton::Create( wxWindow *parent,
     if ((new_size.x != size.x) || (new_size.y != size.y))
         SetSize( new_size.x, new_size.y );
         
-    SetBackgroundColour( parent->GetBackgroundColour() );
-    SetForegroundColour( parent->GetForegroundColour() );
-  
     Show( TRUE );
 
     return TRUE;