X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83624f79609f0d5e240c1f7d77d044bfff9702fc..27a9bd487b5ee30238e35ff4962bf70237cfc2c0:/src/gtk1/statbox.cpp diff --git a/src/gtk1/statbox.cpp b/src/gtk1/statbox.cpp index e5239cc924..d1c978b2ef 100644 --- a/src/gtk1/statbox.cpp +++ b/src/gtk1/statbox.cpp @@ -43,11 +43,9 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label m_isStaticBox = TRUE; - m_widget = gtk_frame_new(m_label); + m_widget = gtk_frame_new(m_label.mbc_str()); - m_parent->AddChild( this ); - - (m_parent->m_insertCallback)( m_parent, this ); + m_parent->DoAddChild( this ); PostCreation(); @@ -55,6 +53,7 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label SetBackgroundColour( parent->GetBackgroundColour() ); SetForegroundColour( parent->GetForegroundColour() ); + SetFont( parent->GetFont() ); Show( TRUE ); @@ -65,7 +64,7 @@ void wxStaticBox::SetLabel( const wxString &label ) { wxControl::SetLabel( label ); GtkFrame *frame = GTK_FRAME( m_widget ); - gtk_frame_set_label( frame, GetLabel() ); + gtk_frame_set_label( frame, GetLabel().mbc_str() ); } void wxStaticBox::ApplyWidgetStyle() @@ -73,4 +72,3 @@ void wxStaticBox::ApplyWidgetStyle() SetWidgetStyle(); gtk_widget_set_style( m_widget, m_widgetStyle ); } -