X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f659fd6b10a8a5c899eaa99adc76a55322b33fd..5db1a502b4bf38f36a14c1377618d9eaae4c8e79:/src/gtk1/stattext.cpp diff --git a/src/gtk1/stattext.cpp b/src/gtk1/stattext.cpp index b05d93c32c..48a3173820 100644 --- a/src/gtk1/stattext.cpp +++ b/src/gtk1/stattext.cpp @@ -2,9 +2,8 @@ // Name: stattext.cpp // Purpose: // Author: Robert Roebling -// Created: 01/02/97 -// Id: -// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem +// Id: $Id$ +// Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -92,6 +91,9 @@ bool wxStaticText::Create( wxWindow *parent, wxWindowID id, const wxString &labe PostCreation(); + SetBackgroundColour( parent->GetBackgroundColour() ); + SetForegroundColour( parent->GetForegroundColour() ); + Show( TRUE ); return TRUE; @@ -111,3 +113,10 @@ void wxStaticText::SetLabel( const wxString &label ) gtk_label_set( GTK_LABEL(m_widget), m_label ); } + +void wxStaticText::ApplyWidgetStyle() +{ + SetWidgetStyle(); + gtk_widget_set_style( m_widget, m_widgetStyle ); +} +