summaryrefslogtreecommitdiff
path: root/x11/wxGTK/patches
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2003-05-16 22:15:27 +0000
committermartin <martin@pkgsrc.org>2003-05-16 22:15:27 +0000
commitdef45b9663cefaeacd4f360bbc00a72bd5a3a71f (patch)
treeafc5b095c3dcd57a0f2fd9cfa63f62f3816f6852 /x11/wxGTK/patches
parenta518845ec6643a8008457896ab9d64b8152a2202 (diff)
downloadpkgsrc-def45b9663cefaeacd4f360bbc00a72bd5a3a71f.tar.gz
Move initialization around a bit - locking the gdk mutex is a no-op before
gdk is initialized (via gtk_init). So lock it *after* initializiation. Fixes PR pkg/21481, thanks to Nathan for debugging hints.
Diffstat (limited to 'x11/wxGTK/patches')
-rw-r--r--x11/wxGTK/patches/patch-ae18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11/wxGTK/patches/patch-ae b/x11/wxGTK/patches/patch-ae
new file mode 100644
index 00000000000..311832d0fd2
--- /dev/null
+++ b/x11/wxGTK/patches/patch-ae
@@ -0,0 +1,18 @@
+$NetBSD: patch-ae,v 1.1 2003/05/16 22:15:28 martin Exp $
+
+--- src/gtk/app.cpp.orig 2003-05-17 00:06:30.000000000 +0200
++++ src/gtk/app.cpp 2003-05-17 00:07:13.000000000 +0200
+@@ -799,10 +799,11 @@
+ if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL;
+ #endif
+
+- gdk_threads_enter();
+-
+ gtk_init( &argc, &argv );
+
++ /* we can not enter threads before gtk_init is done */
++ gdk_threads_enter();
++
+ wxSetDetectableAutoRepeat( TRUE );
+
+ if (!wxApp::Initialize())