Import and initialize gtk.gdk threads for use in the image class (and

probably other places where there are gtk-related critical sections)
This commit is contained in:
Bryan Schumaker 2010-11-02 17:04:56 -04:00
parent 101e833690
commit cc8ea2d11f
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import gobject
import pango
import libsaria
gdk = gtk.gdk
__major__ = 4
__minor__ = 1
__dev__ = True
@ -12,6 +14,7 @@ __vers__ = "Ocarina %s.%s" % (__major__, __minor__)
if __dev__ == True:
__vers__ += "-dev"
gdk.threads_init()
gobject.threads_init()
# Lazy loaded modules