X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8e24dfa9322702d56a125586a7d4a37f4a5dfd7..fae763d0883dbc84142ee272b7d1bb1fe04f354b:/src/gtk/slider.cpp?ds=inline diff --git a/src/gtk/slider.cpp b/src/gtk/slider.cpp index f3ab24213f..e7079c5c10 100644 --- a/src/gtk/slider.cpp +++ b/src/gtk/slider.cpp @@ -141,10 +141,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id, m_parent->DoAddChild( this ); - PostCreation(); - InheritAttributes(); - - Show( TRUE ); + PostCreation(size); return TRUE; } @@ -289,4 +286,11 @@ void wxSlider::GtkEnableEvents() (gpointer) this ); } +// static +wxVisualAttributes +wxSlider::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) +{ + return GetDefaultAttributesFromGTKWidget(gtk_vscale_new); +} + #endif