* giscanner/cgobject.py: Also call g_thread_init.
svn path=/trunk/; revision=583
_gobj = ctypes.CDLL(_library_path, ctypes.RTLD_GLOBAL)
_gobj.g_type_init()
+if os.name == 'nt':
+ _threads_library_path = find_library('libgthread-2.0-0')
+else:
+ _threads_library_path = find_library('gthread-2.0')
+if not _threads_library_path:
+ raise ImportError("Could not find gthread-2.0 library")
+_gthreads = ctypes.CDLL(_threads_library_path, ctypes.RTLD_GLOBAL)
+_gthreads.g_thread_init.argtypes = [ctypes.c_void_p]
+_gthreads.g_thread_init(None)
# Functions