X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9158f7d8b2538bcca2b7e546a39ced77d3ddc4e..b1683d38998df9b7a03486ec11bfc46833de91c5:/src/gtk/radiobox.cpp diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index e1977ab2a4..dcd089fa7e 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -85,11 +85,12 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, m_needParent = TRUE; m_acceptsFocus = TRUE; - PreCreation( parent, id, pos, size, style, name ); - -#if wxUSE_VALIDATORS - SetValidator( validator ); -#endif + if (!PreCreation( parent, pos, size ) || + !CreateBase( parent, id, pos, size, style, validator, name )) + { + wxFAIL_MSG( _T("wxRadioBox creation failed") ); + return FALSE; + } m_widget = gtk_frame_new( title.mbc_str() ); @@ -270,7 +271,7 @@ wxSize wxRadioBox::LayoutItems() node = node->Next(); } res.x = x+4; - res.y = 42; + res.y = 40; } return res;