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:
parent
101e833690
commit
cc8ea2d11f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue