]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/slider.cpp
iconv() really never set the trailing 0.
[wxWidgets.git] / src / gtk / slider.cpp
index 07bc86620dd562f439e6bc4d3f4600af7b462028..9f595756798574947c513c65abd7a676a5ab3682 100644 (file)
@@ -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();