ocarina: Get gtk lock around gtk.main()

The internet suggests that this may help with the random crashes I
sometimes get.  We'll see.
This commit is contained in:
Bryan Schumaker 2011-05-15 15:58:37 -04:00
parent e0dd940671
commit 3301439e88
1 changed files with 2 additions and 0 deletions

View File

@ -29,4 +29,6 @@ def run():
callbacks.on_get_art("images/ocarina.png", 0)
libsaria.startup()
print "Startup took:", uptime()
gtk.threads_enter()
gtk.main()
gtk.threads_leave()