X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe3d8179fa7f835ce63c70bb22142869b66212e6..88db66e3734d7dc8bdc965bd03e8512b64b8a48a:/src/gtk1/statbox.cpp diff --git a/src/gtk1/statbox.cpp b/src/gtk1/statbox.cpp index 3f6abe3198..abf8e8ce57 100644 --- a/src/gtk1/statbox.cpp +++ b/src/gtk1/statbox.cpp @@ -22,14 +22,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxStaticBox,wxControl) wxStaticBox::wxStaticBox(void) { -}; +} wxStaticBox::wxStaticBox( wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos, const wxSize &size, long style, const wxString &name ) { Create( parent, id, label, pos, size, style, name ); -}; +} bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos, const wxSize &size, @@ -47,4 +47,11 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label Show( TRUE ); return TRUE; -}; +} + +void wxStaticBox::SetLabel( const wxString &label ) +{ + wxControl::SetLabel( label ); + GtkFrame *frame = GTK_FRAME( m_widget ); + gtk_frame_set_label( frame, GetLabel() ); +}