From 844ff2b73c9f2529d65a5ca2e8b863549886e36e Mon Sep 17 00:00:00 2001 From: John Ehresman Date: Wed, 24 Aug 2005 18:51:38 +0000 Subject: Added sources so gobject module will compile, fixed enable/disable thread * setup.py: Added sources so gobject module will compile, fixed enable/disable thread support, and changed default so thread support is enabled unless --disable-threading is specified * gobject/gobjectmodule.c, gobject/pygobject.c: Set PyGObject_MetaType.tp_base in module initialization to keep VC++ happy --- gobject/gobjectmodule.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gobject/gobjectmodule.c') diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 68a10ac..c6420ab 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -2717,6 +2717,7 @@ initgobject(void) gerror_exc = PyErr_NewException("gobject.GError", PyExc_RuntimeError,NULL); PyDict_SetItemString(d, "GError", gerror_exc); + PyGObject_MetaType.tp_base = &PyType_Type; PyGObject_MetaType.tp_traverse = PyType_Type.tp_traverse; PyGObject_MetaType.tp_clear = PyType_Type.tp_clear; PyGObject_MetaType.tp_is_gc = PyType_Type.tp_is_gc; -- cgit