threads fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3c9e913f6f
commit
cf26ac62e3
@ -221,6 +221,7 @@ extern "C" {
|
|||||||
static gboolean
|
static gboolean
|
||||||
idle_thumbrelease(void* data)
|
idle_thumbrelease(void* data)
|
||||||
{
|
{
|
||||||
|
gdk_threads_enter();
|
||||||
wxSlider* win = (wxSlider*)data;
|
wxSlider* win = (wxSlider*)data;
|
||||||
win->m_isScrolling = false;
|
win->m_isScrolling = false;
|
||||||
if (win->m_needThumbRelease)
|
if (win->m_needThumbRelease)
|
||||||
@ -232,6 +233,7 @@ idle_thumbrelease(void* data)
|
|||||||
win->BlockScrollEvent();
|
win->BlockScrollEvent();
|
||||||
gtk_range_set_value((GtkRange*)win->m_widget, win->GetValue());
|
gtk_range_set_value((GtkRange*)win->m_widget, win->GetValue());
|
||||||
win->UnblockScrollEvent();
|
win->UnblockScrollEvent();
|
||||||
|
gdk_threads_leave();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user