X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27c78e4552aaefac9a4db0d4453eff09cdfef2ad..f81dc6e93170cb73c6d614b77e26be49baa724d2:/src/gtk/radiobox.cpp diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index f4bc5fed50..abe3aed93d 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -198,7 +198,8 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, return false; } - m_widget = gtk_frame_new( wxGTK_CONV( title ) ); + m_widget = gtk_frame_new(NULL); + SetLabel(title); // majorDim may be 0 if all trailing parameters were omitted, so don't // assert here but just use the correct value for it @@ -273,8 +274,6 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, m_parent->DoAddChild( this ); - SetLabel( title ); - PostCreation(size); return true; @@ -399,9 +398,7 @@ void wxRadioBox::SetLabel( const wxString& label ) { wxCHECK_RET( m_widget != NULL, wxT("invalid radiobox") ); - wxControl::SetLabel( label ); - - gtk_frame_set_label( GTK_FRAME(m_widget), wxGTK_CONV( wxControl::GetLabel() ) ); + GTKSetLabelForFrame(GTK_FRAME(m_widget), label); } void wxRadioBox::SetString( int item, const wxString& label )