Fix threading issue with glib20.

PR:		ports/176888 (reported)
Submitted by:	Yamagi Burmeister <yamagi@yamagi.org>
Obtained from:	OpenBSD sonata port.
This commit is contained in:
Koop Mast 2013-08-03 11:20:55 +00:00
parent f0ac650bf4
commit b10cea9165
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324188
2 changed files with 11 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= sonata
PORTVERSION= 1.6.2.1
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= audio python
MASTER_SITES= http://codingteam.net/project/sonata/upload/releases/

View file

@ -0,0 +1,10 @@
--- sonata/main.py.orig 2013-08-03 13:13:21.000000000 +0200
+++ sonata/main.py 2013-08-03 13:14:12.000000000 +0200
@@ -3400,4 +3400,7 @@ class Base(object):
self.on_currsong_notify(force_popup=True)
def main(self):
+ gtk.gdk.threads_init()
+ gtk.gdk.threads_enter()
gtk.main()
+ gtk.gdk.threads_leave()