X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1b93ccbdce1d7b757f6d6180b710214e6277a00..7291c37aa8f406b9487963a1b7fd6ee45b2e0b34:/src/gtk/slider.cpp?ds=inline diff --git a/src/gtk/slider.cpp b/src/gtk/slider.cpp index 07bc86620d..9f59575679 100644 --- a/src/gtk/slider.cpp +++ b/src/gtk/slider.cpp @@ -131,11 +131,11 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id, m_adjust = gtk_range_get_adjustment( GTK_RANGE(m_widget) ); + GtkEnableEvents(); + SetRange( minValue, maxValue ); SetValue( value ); - GtkEnableEvents(); - m_parent->DoAddChild( this ); PostCreation();