diff options
| author | James Henstridge <james@daa.com.au> | 2002-07-12 13:50:57 +0000 |
|---|---|---|
| committer | James Henstridge <jamesh@src.gnome.org> | 2002-07-12 13:50:57 +0000 |
| commit | 3b069a1dca0c8bd147ec1e2ea7a544e9f75d6032 (patch) | |
| tree | bbea673a5ead36bb2c7eafa9d579de68d49564a6 /gobject/pygobject.c | |
| parent | bf4674b72ab3c906d45458dcab26f6d5c7fe507b (diff) | |
| download | pygobject-3b069a1dca0c8bd147ec1e2ea7a544e9f75d6032.tar.gz pygobject-3b069a1dca0c8bd147ec1e2ea7a544e9f75d6032.tar.xz pygobject-3b069a1dca0c8bd147ec1e2ea7a544e9f75d6032.zip | |
These changes help with win32 compat.PYGTK_1_99_12
2002-07-12 James Henstridge <james@daa.com.au>
These changes help with win32 compat.
* pygboxed.c (PyGBoxed_Type): set tp_alloc and tp_new to NULL.
(PyGPointer_Type): same here.
* gobjectmodule.c (PyGInterface_Type): set tp_alloc and tp_new to
NULL.
(initgobject): set tp_new and tp_alloc for various types.
* pygobject.c (PyGObject_Type): set tp_alloc and tp_new to NULL.
Diffstat (limited to 'gobject/pygobject.c')
| -rw-r--r-- | gobject/pygobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject/pygobject.c b/gobject/pygobject.c index 30aeb38..d550127 100644 --- a/gobject/pygobject.c +++ b/gobject/pygobject.c @@ -974,8 +974,8 @@ PyTypeObject PyGObject_Type = { 0, /* tp_descr_set */ offsetof(PyGObject, inst_dict), /* tp_dictoffset */ (initproc)pygobject_init, /* tp_init */ - PyType_GenericAlloc, /* tp_alloc */ - PyType_GenericNew, /* tp_new */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ pygobject_free, /* tp_free */ (inquiry)0, /* tp_is_gc */ (PyObject *)0, /* tp_bases */ |
