X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8e24dfa9322702d56a125586a7d4a37f4a5dfd7..be698f50301674b969cacecc683ffac5ba6e2e16:/src/gtk1/spinbutt.cpp?ds=sidebyside diff --git a/src/gtk1/spinbutt.cpp b/src/gtk1/spinbutt.cpp index 2d5eb9650c..423947a1d3 100644 --- a/src/gtk1/spinbutt.cpp +++ b/src/gtk1/spinbutt.cpp @@ -150,10 +150,7 @@ bool wxSpinButton::Create(wxWindow *parent, m_parent->DoAddChild( this ); - PostCreation(); - InheritAttributes(); - - Show( TRUE ); + PostCreation(new_size); return TRUE; } @@ -239,4 +236,13 @@ wxSize wxSpinButton::DoGetBestSize() const return wxSize(15, 26); } +// static +wxVisualAttributes +wxSpinButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) +{ + // TODO: overload to accept functions like gtk_spin_button_new? + // Until then use a similar type + return GetDefaultAttributesFromGTKWidget(gtk_button_new); +} + #endif