gobject-introspection r583 - trunk/giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r583 - trunk/giscanner
- Date: Sun, 7 Sep 2008 22:10:37 +0000 (UTC)
Author: walters
Date: Sun Sep 7 22:10:37 2008
New Revision: 583
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=583&view=rev
Log:
Call g_thread_init to make libsoup happy
* giscanner/cgobject.py: Also call g_thread_init.
Modified:
trunk/giscanner/cgobject.py
Modified: trunk/giscanner/cgobject.py
==============================================================================
--- trunk/giscanner/cgobject.py (original)
+++ trunk/giscanner/cgobject.py Sun Sep 7 22:10:37 2008
@@ -134,6 +134,15 @@
_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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]