Wrap gtk.main, not app.main, thanks kurt@ :)

This commit is contained in:
ajacoutot 2012-05-09 14:28:54 +00:00
parent ffee4301e4
commit 48c1f786ac
3 changed files with 15 additions and 17 deletions

View File

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

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-sonata_main_py,v 1.3 2012/05/09 14:28:54 ajacoutot Exp $
http://codingteam.net/project/sonata/bugs/show/2870
--- sonata/main.py.orig Wed May 9 16:24:23 2012
+++ sonata/main.py Wed May 9 16:24:16 2012
@@ -3400,4 +3400,6 @@ class Base(object):
self.on_currsong_notify(force_popup=True)
def main(self):
+ gtk.gdk.threads_enter()
gtk.main()
+ gtk.gdk.threads_leave()

View File

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