diff options
| author | Johan Dahlin <johan@src.gnome.org> | 2004-08-02 11:03:05 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2004-08-02 11:03:05 +0000 |
| commit | 3e41db376f6e40c2df01a1f83c2ecf10a5315084 (patch) | |
| tree | a4146d2ca0d7516cbcd334048286a710e2692a58 /gobject/pygobject.h | |
| parent | fa82703297dadadf71b26650a8bafd55fc101dce (diff) | |
| download | pygobject-3e41db376f6e40c2df01a1f83c2ecf10a5315084.tar.gz pygobject-3e41db376f6e40c2df01a1f83c2ecf10a5315084.tar.xz pygobject-3e41db376f6e40c2df01a1f83c2ecf10a5315084.zip | |
Call PyEval_InitThreads. Perhaps its something that always should bePYGTK_2_3_95
* gobject/gobjectmodule.c (initgobject): Call
PyEval_InitThreads. Perhaps its something that always should be
called.
* README (Author): Add a requirements section
* configure.in: Require Python 2.3
* setup.py (version): Ditto
* gobject/pygtype.c, gobject/pygobject.h: Remove 2.2 compat.
* All over the place: Add support for PyGILState.
Diffstat (limited to 'gobject/pygobject.h')
| -rw-r--r-- | gobject/pygobject.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h index 9292cec..ebddca0 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -7,8 +7,10 @@ #include <glib.h> #include <glib-object.h> -#if PY_VERSION_HEX < 0x02030000 - typedef destructor freefunc; +#if !(defined ENABLE_PYGTK_THREADING) +# define PyGILState_STATE int +# define PyGILState_Ensure() (0) +# define PyGILState_Release(x) #endif typedef struct { |
