openbsd-ports/audio/sonata/patches/patch-sonata_py
ajacoutot 86cce23279 Properly call gtk.gdk.threads_enter and gtk.gdk.threads_leave to prevent
abort() on startup due to gtk trying to unlock a uninitialized mutex.

looks good to kurt@
2012-05-09 08:30:14 +00:00

16 lines
379 B
Plaintext

$OpenBSD: patch-sonata_py,v 1.1 2012/05/09 08:30:14 ajacoutot Exp $
http://codingteam.net/project/sonata/bugs/show/2870
--- sonata.py.orig Sun May 6 09:42:49 2012
+++ sonata.py Sun May 6 09:42:43 2012
@@ -166,6 +166,8 @@ from sonata import main
app = main.Base(args)
try:
+ gtk.gdk.threads_enter()
app.main()
+ gtk.gdk.threads_leave()
except KeyboardInterrupt:
pass