]> git.saurik.com Git - wxWidgets.git/commitdiff
threads fix
authorPaul Cornett <paulcor@bullseye.com>
Wed, 31 May 2006 17:22:38 +0000 (17:22 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 31 May 2006 17:22:38 +0000 (17:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/slider.cpp

index c2ba63e207eebe9e1ea0d3bf37fcf68e4912b1b4..f08fcc5b4905fdb2acdf7476b6d015f26a0ff087 100644 (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;
 }
 }