X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..da3f3e049a3bcd9db16d73dd83c007e12f6c95e1:/src/gtk/stattext.cpp diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index 90c9857ac0..228cac559f 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -111,7 +111,8 @@ bool wxStaticText::Create(wxWindow *parent, ApplyWidgetStyle(); - wxControl::SetFont( parent->GetFont() ); + InheritAttributes(); +// wxControl::SetFont( parent->GetFont() ); wxSize size_best( DoGetBestSize() ); wxSize new_size( size ); @@ -122,8 +123,11 @@ bool wxStaticText::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() ); +// if (ShouldInheritColours()) +// { +// SetBackgroundColour( parent->GetBackgroundColour() ); +// SetForegroundColour( parent->GetForegroundColour() ); +// } Show( TRUE ); return TRUE;