Removed gtk thread locks
This commit is contained in:
parent
b7053f2110
commit
640a303561
@ -151,9 +151,6 @@ class FAHControl(SingleAppServer):
|
|||||||
|
|
||||||
self.__class__.instance = self
|
self.__class__.instance = self
|
||||||
|
|
||||||
# Windows needs this but OSX accelerators crash with this
|
|
||||||
if sys.platform != 'darwin': gtk.gdk.threads_init()
|
|
||||||
|
|
||||||
# Vars
|
# Vars
|
||||||
self.clients = {}
|
self.clients = {}
|
||||||
self.clientsByAddress = {}
|
self.clientsByAddress = {}
|
||||||
@ -544,10 +541,7 @@ class FAHControl(SingleAppServer):
|
|||||||
self.window.add_accel_group(ag)
|
self.window.add_accel_group(ag)
|
||||||
except Exception, e: print e
|
except Exception, e: print e
|
||||||
|
|
||||||
# Windows needs this but OSX accelerators crash with this
|
|
||||||
if sys.platform != 'darwin': gtk.gdk.threads_enter()
|
|
||||||
gtk.main()
|
gtk.main()
|
||||||
if sys.platform != 'darwin': gtk.gdk.threads_leave()
|
|
||||||
|
|
||||||
|
|
||||||
# Util
|
# Util
|
||||||
|
Loading…
x
Reference in New Issue
Block a user