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@
This commit is contained in:
ajacoutot 2012-05-09 08:30:14 +00:00
parent ea24140a86
commit 86cce23279
2 changed files with 17 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.34 2012/05/05 09:40:43 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.35 2012/05/09 08:30:14 ajacoutot Exp $
COMMENT= elegant music player for MPD
MODPY_EGG_VERSION=1.6.2.1
DISTNAME= sonata-${MODPY_EGG_VERSION}
REVISION = 10
REVISION = 11
CATEGORIES= audio
HOMEPAGE= http://sonata.berlios.de/

View File

@ -0,0 +1,15 @@
$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