X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4ca49cde3c56f0f7b249fc62925df3d99ab3c58..6258e418a07e8edda218c27aade9e522deaeaf74:/src/gtk/radiobox.cpp diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 551fc826aa..3538f3c037 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -246,16 +246,10 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, bool wasShown = IsShown(); if ( wasShown ) Hide(); // prevent PostCreation() from showing us - PostCreation(); - InheritAttributes(); - - ApplyWidgetStyle(); SetLabel( title ); - SetFont( parent->GetFont() ); - - SetBestSize( size ); + PostCreation(size); if ( wasShown ) Show(); @@ -758,5 +752,16 @@ void wxRadioBox::OnInternalIdle() } } +// static +wxVisualAttributes +wxRadioBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) +{ + wxVisualAttributes attr; + GtkWidget* widget = gtk_radio_button_new_with_label(NULL, ""); + attr = GetDefaultAttributesFromGTKWidget(widget); + gtk_widget_destroy(widget); + return attr; +} + #endif // wxUSE_RADIOBOX