threads fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2006-05-31 17:22:38 +00:00
parent 3c9e913f6f
commit cf26ac62e3

View File

@ -221,6 +221,7 @@ extern "C" {
static gboolean
idle_thumbrelease(void* data)
{
gdk_threads_enter();
wxSlider* win = (wxSlider*)data;
win->m_isScrolling = false;
if (win->m_needThumbRelease)
@ -232,6 +233,7 @@ idle_thumbrelease(void* data)
win->BlockScrollEvent();
gtk_range_set_value((GtkRange*)win->m_widget, win->GetValue());
win->UnblockScrollEvent();
gdk_threads_leave();
return false;
}
}