Applied patch [ 590031 ] Slider: Events must be enabled earlier

The current wxSlider - implementation gives a gtk-warning
about not being able to find an event handler. This is
because the first call of GtkEnableEvents has to happen a
few lines earlier. The patch fixes this.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2002-08-08 09:24:38 +00:00
parent 7a9c8d7492
commit 91b167ddeb
2 changed files with 4 additions and 4 deletions

View 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();

View 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();