Use InheritAttributes for wxGTK widgets so they will check

ShouldInheritColours.  Set wxButton to not inherit colours.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-12-03 03:24:47 +00:00
parent cc6dd35581
commit e8e24dfa93
33 changed files with 55 additions and 104 deletions

View File

@@ -136,8 +136,7 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label,
m_parent->DoAddChild( this );
PostCreation();
SetFont( parent->GetFont() );
InheritAttributes();
wxSize best_size( DoGetBestSize() );
wxSize new_size( size );
@@ -150,9 +149,6 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label,
SetSize( new_size );
SetBackgroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetForegroundColour() );
Show( TRUE );
return TRUE;